]> git.saurik.com Git - wxWidgets.git/commitdiff
Patch [669508] Define Win32 symbols for CW in platform.h
authorMattia Barbon <mbarbon@cpan.org>
Sun, 19 Jan 2003 10:10:54 +0000 (10:10 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sun, 19 Jan 2003 10:10:54 +0000 (10:10 +0000)
from Igor Mikolic-Torreira

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/platform.h

index 68fe507d825c205c1f0fc8ea85081c786db47166..f619504c01727df5211ac721f26624b600703c23 100644 (file)
 #ifndef _WX_PLATFORM_H_
 #define _WX_PLATFORM_H_
 
+
+/*
+    Codewarrior doesn't define any Windows symbols until some headers
+    are included
+*/
+#if __MWERKS__
+    #include <stddef.h>
+    #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