X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/54892273481657ae3b855cf5d40e328f38b6408c..9b2a74693ea0ac096f5099caac4a5ead3268e07f:/include/wx/msw/wrapwin.h 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"