X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/890d70ebeaf39ee13012d22751d64d8de070275c..61a69259c442653024f557707b5ca652d84919e0:/include/wx/msw/chkconf.h diff --git a/include/wx/msw/chkconf.h b/include/wx/msw/chkconf.h index db029d3d0e..6487865fb1 100644 --- a/include/wx/msw/chkconf.h +++ b/include/wx/msw/chkconf.h @@ -239,6 +239,15 @@ Compiler-specific checks. */ +// Only MSVC 7+ has gdiplus.h, add exceptions for other compilers here if they +// can support it too (but notice that Borland currently dies in +// src/msw/gdiplus.cpp with "macro expansion too long" error even if the header +// is available) +#if !wxCHECK_VISUALC_VERSION(7) + #undef wxUSE_GRAPHICS_CONTEXT + #define wxUSE_GRAPHICS_CONTEXT 0 +#endif + // Borland #ifdef __BORLANDC__ @@ -254,10 +263,6 @@ # define wxUSE_DEBUG_NEW_ALWAYS 0 #endif -/* compiling src/msw/gdiplus.cpp results in "macro expansion too long" error */ -#undef wxUSE_GRAPHICS_CONTEXT -#define wxUSE_GRAPHICS_CONTEXT 0 - #endif /* __BORLANDC__ */ /* DMC++ doesn't have definitions for date picker control, so use generic control @@ -411,14 +416,4 @@ # define wxUSE_POSTSCRIPT 1 #endif -/* - Currently only recent MSVC compilers can build the new events code under - Windows. - */ -#ifdef wxHAS_EVENT_BIND -# if !wxCHECK_VISUALC_VERSION(7) -# undef wxHAS_EVENT_BIND -# endif -#endif - #endif /* _WX_MSW_CHKCONF_H_ */