]> git.saurik.com Git - wxWidgets.git/commitdiff
Fix windows.h inclusion problem on WinCE
authorJulian Smart <julian@anthemion.co.uk>
Wed, 15 Mar 2006 10:30:08 +0000 (10:30 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 15 Mar 2006 10:30:08 +0000 (10:30 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/wrapwin.h

index b7b6d6e24c27cf4a1f85839e3e23f509c9f9417a..1e039d424de835ff03d073cc4758018ceadd9026 100644 (file)
     #define _WIN32_WINNT 0x0600
 #endif
 
+/* Deal with clash with __WINDOWS__ include guard */
+#if defined(__WXWINCE__) && defined(__WINDOWS__)
+#undef __WINDOWS__
+#endif
 
 #include <windows.h>
 
-#ifdef __WXWINCE__
-    // this doesn't make any sense knowing that windows.h includes all these
-    // headers anyhow, but the fact remains that when building using eVC 4 the
-    // functions and constants from these headers are not defined unless we
-    // explicitly include them ourselves -- how is it possible is beyond me...
-    #include <winbase.h>
-    #include <wingdi.h>
-    #include <winuser.h>
-
-    // this one OTOH contains many useful CE-only functions
-    #include <shellapi.h>
-#endif // __WXWINCE__
-
+#if defined(__WXWINCE__) && !defined(__WINDOWS__)
+#define __WINDOWS__
+#endif
 
 // #undef the macros defined in winsows.h which conflict with code elsewhere
 #include "wx/msw/winundef.h"