X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b4da152ea3ec3968fb2f304b6ed73e0279c19506..f3fb0a0719e73206384a75f01bf5f50a7188078a:/include/wx/platform.h diff --git a/include/wx/platform.h b/include/wx/platform.h index c49935f8c4..f619504c01 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -14,10 +14,41 @@ #ifndef _WX_PLATFORM_H_ #define _WX_PLATFORM_H_ + +/* + Codewarrior doesn't define any Windows symbols until some headers + are included +*/ +#if __MWERKS__ + #include + #if defined(WIN32) || defined(_WIN32) + #ifndef WINVER + #define WINVER 0x0400 + #endif + #endif +#endif + + /* first define Windows symbols if they're not defined on the command line: we can autodetect everything we need if _WIN32 is defined */ +#if defined(__CYGWIN32__) && !defined(__WXMOTIF__) && !defined(__WXGTK__) \ + && !defined(__WXX11__) + /* for Cygwin, default to wxMSW unless otherwise specified */ + #ifndef __WXMSW__ + #define __WXMSW__ + #endif + + #ifndef _WIN32 + #define _WIN32 + #endif + + #ifndef WIN32 + #define WIN32 + #endif +#endif + #if defined(_WIN32) || defined(WIN32) || defined(__NT__) || defined(__WXWINCE__) #ifndef __WXMSW__ #define __WXMSW__