From: Julian Smart Date: Wed, 15 Mar 2006 10:30:08 +0000 (+0000) Subject: Fix windows.h inclusion problem on WinCE X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/839f48f25d24fa545a1d3b2e8043494154ca67e0 Fix windows.h inclusion problem on WinCE git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/wrapwin.h b/include/wx/msw/wrapwin.h index b7b6d6e24c..1e039d424d 100644 --- a/include/wx/msw/wrapwin.h +++ b/include/wx/msw/wrapwin.h @@ -43,22 +43,16 @@ #define _WIN32_WINNT 0x0600 #endif +/* Deal with clash with __WINDOWS__ include guard */ +#if defined(__WXWINCE__) && defined(__WINDOWS__) +#undef __WINDOWS__ +#endif #include -#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 - #include - #include - - // this one OTOH contains many useful CE-only functions - #include -#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"