Extract compiler-specific macro definitions in a new wx/compiler.h.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 13 Jul 2013 02:30:21 +0000 (02:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 13 Jul 2013 02:30:21 +0000 (02:30 +0000)
commit20125017a4bccd0920ee21e178950b0de0e4d63b
tree5b8da60ef81c868676e4cbe7c5537ebc6b168f2f
parentcd709fcebc0a8c6c2f529cf4cf9d93402a500d2e
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
12 files changed:
Makefile.in
build/bakefiles/files.bkl
build/msw/wx_base.dsp
build/msw/wx_vc7_base.vcproj
build/msw/wx_vc8_base.vcproj
build/msw/wx_vc9_base.vcproj
include/wx/compiler.h [new file with mode: 0644]
include/wx/cpp.h
include/wx/platform.h
wxGTK.spec
wxMotif.spec
wxX11.spec