Enable wxGraphicsContext and related classes by default if supported.

For MSW, check for gdiplus.h availability when using configure but only
support it for MSVC 7+ otherwise. For the other platforms, always support it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2009-11-24 00:01:15 +00:00
parent 9302396589
commit a12bd55b0d
13 changed files with 301 additions and 258 deletions

View File

@@ -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