From e47c4d48740169a995b549f65118f777be7f3864 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 4 Jan 2000 16:35:55 +0000 Subject: [PATCH] wxMSW compilation fixes for old mingw32 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5237 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/msw/private.h | 2 +- src/common/cmndata.cpp | 2 +- src/msw/fontenum.cpp | 6 ++---- src/msw/treectrl.cpp | 4 +++- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/wx/msw/private.h b/include/wx/msw/private.h index eac661347d..e0d3918849 100644 --- a/include/wx/msw/private.h +++ b/include/wx/msw/private.h @@ -80,7 +80,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__) diff --git a/src/common/cmndata.cpp b/src/common/cmndata.cpp index 2e5cabad13..c818294206 100644 --- a/src/common/cmndata.cpp +++ b/src/common/cmndata.cpp @@ -222,7 +222,7 @@ wxPrintData::~wxPrintData() #if defined(__WXMSW__) // && defined(__WIN32__) -#ifdef __WIN32__ +#if defined(__WXDEBUG__) && defined(__WIN32__) static wxString wxGetPrintDlgError() { DWORD err = CommDlgExtendedError(); diff --git a/src/msw/fontenum.cpp b/src/msw/fontenum.cpp index 9d7e1820d0..8b9d993b14 100644 --- a/src/msw/fontenum.cpp +++ b/src/msw/fontenum.cpp @@ -110,12 +110,10 @@ bool wxFontEnumeratorHelper::SetEncoding(wxFontEncoding encoding) return TRUE; } -// I've no idea what __GNUWIN32_OLD__ is. Anyway, I had to add the 2nd condition -// for Cygwin b20 (JACS) -#if (defined(__GNUWIN32_OLD__) || defined(__GNUWIN32__)) && !defined(__MINGW32__) +#if defined(__GNUWIN32__) && !defined(__MINGW32__) #define wxFONTENUMPROC int(*)(ENUMLOGFONTEX *, NEWTEXTMETRICEX*, int, LPARAM) #else - #define wxFONTENUMPROC FONTENUMPROC + #define wxFONTENUMPROC FONTENUMEXPROC #endif void wxFontEnumeratorHelper::DoEnumerate() diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index b309b70702..d328e047c7 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -149,6 +149,8 @@ public: return TRUE; } + size_t GetCount() const { return m_selections.GetCount(); } + private: wxArrayTreeItemIds& m_selections; }; @@ -978,7 +980,7 @@ size_t wxTreeCtrl::GetSelections(wxArrayTreeItemIds& selections) const { TraverseSelections selector(this, selections); - return selections.GetCount(); + return selector.GetCount(); } // ----------------------------------------------------------------------------