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:
J. Russell Smyth
1999-08-04 00:42:51 +00:00
parent ea8fe90e65
commit 65fd5cb012
34 changed files with 68 additions and 33 deletions

View File

@@ -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

View File

@@ -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__)

View File

@@ -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