Patch [669508] Define Win32 symbols for CW in platform.h

from Igor Mikolic-Torreira


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon
2003-01-19 10:10:54 +00:00
parent cceb71da44
commit a203834e6b

View File

@@ -14,6 +14,21 @@
#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