Always automatically define WX_PRECOMP for MSVC when not disabled

Configure builds were excluded, but this would also exclude CMake
because it uses the same __WX_SETUP_H__ define.

This was done back in 248eaddf7a when there were more Windows compilers,
of which some probably used configure. But over time he check has been
reduced to only __VISUALC__ which isn't used with configure. So there is
no reason to keep this check.

See #24353, #24632.

(cherry picked from commit 4d6bcd833f)
This commit is contained in:
Maarten Bent
2024-06-22 15:58:58 +02:00
committed by Vadim Zeitlin
parent 0c5fc84a76
commit 1e8a937faa
2 changed files with 5 additions and 8 deletions
+1
View File
@@ -270,6 +270,7 @@ wxGTK:
wxMSW:
- More Windows Server versions in wxGetOsDescription() (PB, #24598, #24603).
- Fix using wx/wxprec.h with vcpkg (Maarten Bent, #24353, #24632).
wxOSX:
+4 -8
View File
@@ -11,14 +11,10 @@
// compiler detection; includes setup.h
#include "wx/defs.h"
// check if to use precompiled headers: do it for most Windows compilers unless
// explicitly disabled by defining NOPCH
#if defined(__VISUALC__)
// If user did not request NOCPH and we're not building using configure
// then assume user wants precompiled headers.
#if !defined(NOPCH) && !defined(__WX_SETUP_H__)
#define WX_PRECOMP
#endif
// check if to use precompiled headers: do it for MSVC unless explicitly
// disabled by defining NOPCH
#if !defined(WX_PRECOMP) && defined(__VISUALC__) && !defined(NOPCH)
#define WX_PRECOMP
#endif
#ifdef WX_PRECOMP