Extract compiler-specific macro definitions in a new wx/compiler.h.
This solves the problem with wx/defs.h -> wx/platform.h -> wx/setup.h which resolves to msvc/wx/setup.h -> wx/version.h -> wx/cpp.h include path which resulted in __VISUALC__ not being defined in wx/cpp.h. This problem was not new but went unnoticed for a long time and was only discovered when wxCHECK_VISUALC_VERSION() started being used in wx/cpp.h too as now the compiler started warning about wrong #if syntax due to it being undefined. Putting the compiler-specific definitions in a separate file allows this file to be included from wx/cpp.h to ensure that these symbols are always defined in it and also makes things a little better organized. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74496 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -937,6 +937,10 @@ SOURCE=..\..\include\wx\cmdline.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\wx\compiler.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\wx\confbase.h
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
@@ -911,6 +911,9 @@
|
||||
<File
|
||||
RelativePath="..\..\include\wx\cmdline.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\wx\compiler.h">
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\wx\confbase.h">
|
||||
</File>
|
||||
|
@@ -1223,6 +1223,10 @@
|
||||
RelativePath="..\..\include\wx\cmdline.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\wx\compiler.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\wx\confbase.h"
|
||||
>
|
||||
|
@@ -1221,6 +1221,10 @@
|
||||
RelativePath="..\..\include\wx\cmdline.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\wx\compiler.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\wx\confbase.h"
|
||||
>
|
||||
|
Reference in New Issue
Block a user