From b71970b1e71a11be428e68413e96833e0ef9065d Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Thu, 23 Jan 2003 20:25:18 +0000 Subject: [PATCH] Patch [669508] Define Win32 symbols for CW in platform.h )backport). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@18886 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/platform.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/include/wx/platform.h b/include/wx/platform.h index 60c5770ed0..fd9b20938f 100644 --- a/include/wx/platform.h +++ b/include/wx/platform.h @@ -14,6 +14,20 @@ #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