Under Cygwin, in platform.h default to wxMSW unless otherwise specified.
Do not #define __WIN95__, __WINDOWS__, __WXMSW__ on the command line for Cygwin/MinGW (when build with makefiles), since platform.h already does that for us. Always check for __WIN32__, not for WIN32 or _WIN32 (just for consistency). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18793 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -156,7 +156,7 @@
|
||||
#elif defined(__WATCOMC__) && (__WATCOMC__ >= 1100)
|
||||
// Watcom 11+ supports bool
|
||||
#define HAVE_BOOL
|
||||
#elif defined(__GNUWIN32__)
|
||||
#elif defined(__GNUWIN32__) || defined(__MINGW32__) || defined(__CYGWIN__)
|
||||
// Cygwin supports bool
|
||||
#define HAVE_BOOL
|
||||
#elif defined(__VISAGECPP__)
|
||||
|
@@ -88,7 +88,7 @@ PDIB wxDibReadBitmapInfo(HFILE fh);
|
||||
#define wxDibFlipY(lpbi, y) ((int)(lpbi)->biHeight-1-(y))
|
||||
|
||||
//HACK for NT BI_BITFIELDS DIBs
|
||||
#ifdef WIN32
|
||||
#ifdef __WIN32__
|
||||
#define wxDibPtr(lpbi) ((lpbi)->biCompression == BI_BITFIELDS \
|
||||
? (LPVOID)(wxDibColors(lpbi) + 3) \
|
||||
: (LPVOID)(wxDibColors(lpbi) + (UINT)(lpbi)->biClrUsed))
|
||||
|
@@ -18,6 +18,22 @@
|
||||
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__
|
||||
|
Reference in New Issue
Block a user