Made changes to allow build with new mingw32/gcc-2.95
added wxUSE_NORLANDER_HEADERS for mingw32/gcc-2.95 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3258 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -129,6 +129,14 @@
|
||||
#if defined(__HPUX__) && defined(__GNUG__)
|
||||
#define va_list __gnuc_va_list
|
||||
#endif // HP-UX
|
||||
|
||||
// Mingw32 gcc-2.95 uses new windows headers which are more ms-like
|
||||
// we are setting this define because of the complex check
|
||||
// using NORLANDER as Cygwin may follow. (header author is Anders Norlander)
|
||||
#if defined(__MINGW32__) && (__GNUC__>=2) && (__GNUC_MINOR__>=95)
|
||||
# define wxUSE_NORLANDER_HEADERS 1
|
||||
#endif
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
// Currently Only MS-Windows/NT, XView and Motif are supported
|
||||
|
@@ -56,7 +56,7 @@ WXDLLEXPORT_DATA(extern HFONT) wxSTATUS_LINE_FONT;
|
||||
// window proc
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
#if defined(__GNUWIN32__)
|
||||
#if defined(__GNUWIN32__) && !defined(wxUSE_NORLANDER_HEADERS)
|
||||
# define CASTWNDPROC (long unsigned)
|
||||
#else
|
||||
# ifdef __BORLANDC__
|
||||
@@ -69,7 +69,7 @@ WXDLLEXPORT_DATA(extern HFONT) wxSTATUS_LINE_FONT;
|
||||
# endif
|
||||
|
||||
# else
|
||||
# if defined (__WIN32__) && defined(STRICT)
|
||||
# if defined (__WIN32__) && defined(STRICT)
|
||||
typedef long (_stdcall * WndProcCast) (HWND, unsigned int, unsigned int, long);
|
||||
# define CASTWNDPROC (WndProcCast)
|
||||
# elif defined(__WIN16__)
|
||||
|
@@ -125,7 +125,7 @@ public:
|
||||
bool Exists() const;
|
||||
// get the info about key (any number of these pointers may be NULL)
|
||||
|
||||
#ifdef __GNUWIN32__
|
||||
#if defined( __GNUWIN32__) && !defined(wxUSE_NORLANDER_HEADERS)
|
||||
bool GetKeyInfo(size_t *pnSubKeys, // number of subkeys
|
||||
size_t *pnMaxKeyLen, // max len of subkey name
|
||||
size_t *pnValues, // number of values
|
||||
|
Reference in New Issue
Block a user