cat confdefs.h >>conftest.$ac_ext
cat >>conftest.$ac_ext <<_ACEOF
/* end confdefs.h. */
+#include <window.h>
#include <gdiplus.h>
int
main ()
dnl GDI+ DLL dynamically anyhow during run-time
AC_LANG_PUSH(C++)
AC_TRY_COMPILE(
- [#include <gdiplus.h>],
+ [#include <windows.h>
+ #include <gdiplus.h>],
[
using namespace Gdiplus;
],
// still do need to distribute it yourself for an application using
// wxGraphicsContext to be runnable on pre-XP systems.
//
-// Default is 1 if the compiler has gdiplus.h (currently only MSVC 7+ under
-// Windows is known to).
+// Default is 1 except if you're using a non-Microsoft compiler under Windows
+// as only MSVC7+ is known to ship with gdiplus.h. For other compilers (e.g.
+// mingw32) you may need to install the headers (and just the headers)
+// yourself. If you do, change the setting below manually.
//
// Recommended setting: 1
-#define wxUSE_GRAPHICS_CONTEXT 1
+#if !defined(__WXMSW__) || wxCHECK_VISUALC_VERSION(7)
+ #define wxUSE_GRAPHICS_CONTEXT 1
+#else
+ #define wxUSE_GRAPHICS_CONTEXT 0
+#endif
// ----------------------------------------------------------------------------
// Individual GUI controls
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__
// still do need to distribute it yourself for an application using
// wxGraphicsContext to be runnable on pre-XP systems.
//
-// Default is 1 if the compiler has gdiplus.h (currently only MSVC 7+ under
-// Windows is known to).
+// Default is 1 except if you're using a non-Microsoft compiler under Windows
+// as only MSVC7+ is known to ship with gdiplus.h. For other compilers (e.g.
+// mingw32) you may need to install the headers (and just the headers)
+// yourself. If you do, change the setting below manually.
//
// Recommended setting: 1
-#define wxUSE_GRAPHICS_CONTEXT 1
+#if !defined(__WXMSW__) || wxCHECK_VISUALC_VERSION(7)
+ #define wxUSE_GRAPHICS_CONTEXT 1
+#else
+ #define wxUSE_GRAPHICS_CONTEXT 0
+#endif
// ----------------------------------------------------------------------------
// Individual GUI controls
// still do need to distribute it yourself for an application using
// wxGraphicsContext to be runnable on pre-XP systems.
//
-// Default is 1 if the compiler has gdiplus.h (currently only MSVC 7+ under
-// Windows is known to).
+// Default is 1 except if you're using a non-Microsoft compiler under Windows
+// as only MSVC7+ is known to ship with gdiplus.h. For other compilers (e.g.
+// mingw32) you may need to install the headers (and just the headers)
+// yourself. If you do, change the setting below manually.
//
// Recommended setting: 1
-#define wxUSE_GRAPHICS_CONTEXT 1
+#if !defined(__WXMSW__) || wxCHECK_VISUALC_VERSION(7)
+ #define wxUSE_GRAPHICS_CONTEXT 1
+#else
+ #define wxUSE_GRAPHICS_CONTEXT 0
+#endif
// ----------------------------------------------------------------------------
// Individual GUI controls
// still do need to distribute it yourself for an application using
// wxGraphicsContext to be runnable on pre-XP systems.
//
-// Default is 1 if the compiler has gdiplus.h (currently only MSVC 7+ under
-// Windows is known to).
+// Default is 1 except if you're using a non-Microsoft compiler under Windows
+// as only MSVC7+ is known to ship with gdiplus.h. For other compilers (e.g.
+// mingw32) you may need to install the headers (and just the headers)
+// yourself. If you do, change the setting below manually.
//
// Recommended setting: 1
-#define wxUSE_GRAPHICS_CONTEXT 1
+#if !defined(__WXMSW__) || wxCHECK_VISUALC_VERSION(7)
+ #define wxUSE_GRAPHICS_CONTEXT 1
+#else
+ #define wxUSE_GRAPHICS_CONTEXT 0
+#endif
// ----------------------------------------------------------------------------
// Individual GUI controls
// still do need to distribute it yourself for an application using
// wxGraphicsContext to be runnable on pre-XP systems.
//
-// Default is 1 if the compiler has gdiplus.h (currently only MSVC 7+ under
-// Windows is known to).
+// Default is 1 except if you're using a non-Microsoft compiler under Windows
+// as only MSVC7+ is known to ship with gdiplus.h. For other compilers (e.g.
+// mingw32) you may need to install the headers (and just the headers)
+// yourself. If you do, change the setting below manually.
//
// Recommended setting: 1
-#define wxUSE_GRAPHICS_CONTEXT 1
+#if !defined(__WXMSW__) || wxCHECK_VISUALC_VERSION(7)
+ #define wxUSE_GRAPHICS_CONTEXT 1
+#else
+ #define wxUSE_GRAPHICS_CONTEXT 0
+#endif
// ----------------------------------------------------------------------------
// Individual GUI controls
// still do need to distribute it yourself for an application using
// wxGraphicsContext to be runnable on pre-XP systems.
//
-// Default is 1 if the compiler has gdiplus.h (currently only MSVC 7+ under
-// Windows is known to).
+// Default is 1 except if you're using a non-Microsoft compiler under Windows
+// as only MSVC7+ is known to ship with gdiplus.h. For other compilers (e.g.
+// mingw32) you may need to install the headers (and just the headers)
+// yourself. If you do, change the setting below manually.
//
// Recommended setting: 1
-#define wxUSE_GRAPHICS_CONTEXT 1
+#if !defined(__WXMSW__) || wxCHECK_VISUALC_VERSION(7)
+ #define wxUSE_GRAPHICS_CONTEXT 1
+#else
+ #define wxUSE_GRAPHICS_CONTEXT 0
+#endif
// ----------------------------------------------------------------------------
// Individual GUI controls
// still do need to distribute it yourself for an application using
// wxGraphicsContext to be runnable on pre-XP systems.
//
-// Default is 1 if the compiler has gdiplus.h (currently only MSVC 7+ under
-// Windows is known to).
+// Default is 1 except if you're using a non-Microsoft compiler under Windows
+// as only MSVC7+ is known to ship with gdiplus.h. For other compilers (e.g.
+// mingw32) you may need to install the headers (and just the headers)
+// yourself. If you do, change the setting below manually.
//
// Recommended setting: 1
-#define wxUSE_GRAPHICS_CONTEXT 1
+#if !defined(__WXMSW__) || wxCHECK_VISUALC_VERSION(7)
+ #define wxUSE_GRAPHICS_CONTEXT 1
+#else
+ #define wxUSE_GRAPHICS_CONTEXT 0
+#endif
// ----------------------------------------------------------------------------
// Individual GUI controls
// still do need to distribute it yourself for an application using
// wxGraphicsContext to be runnable on pre-XP systems.
//
-// Default is 1 if the compiler has gdiplus.h (currently only MSVC 7+ under
-// Windows is known to).
+// Default is 1 except if you're using a non-Microsoft compiler under Windows
+// as only MSVC7+ is known to ship with gdiplus.h. For other compilers (e.g.
+// mingw32) you may need to install the headers (and just the headers)
+// yourself. If you do, change the setting below manually.
//
// Recommended setting: 1
-#define wxUSE_GRAPHICS_CONTEXT 1
+#if !defined(__WXMSW__) || wxCHECK_VISUALC_VERSION(7)
+ #define wxUSE_GRAPHICS_CONTEXT 1
+#else
+ #define wxUSE_GRAPHICS_CONTEXT 0
+#endif
// ----------------------------------------------------------------------------
// Individual GUI controls
#define wxUSE_STC 0
-#define wxUSE_GRAPHICS_CONTEXT 0
+#if !defined(__WXMSW__) || wxCHECK_VISUALC_VERSION(7)
+ #define wxUSE_GRAPHICS_CONTEXT 0
+#else
+ #define wxUSE_GRAPHICS_CONTEXT 0
+#endif
#define wxUSE_CONTROLS 0