diff --git a/src/msw/gdiimage.cpp b/src/msw/gdiimage.cpp index d8015b11e3..ae1820d19a 100644 --- a/src/msw/gdiimage.cpp +++ b/src/msw/gdiimage.cpp @@ -32,13 +32,13 @@ #include "wx/string.h" #endif // WX_PRECOMP +#include "wx/msw/private.h" + #include "wx/app.h" #include "wx/msw/dib.h" #include "wx/msw/gdiimage.h" -#include "wx/msw/private.h" - // ---------------------------------------------------------------------------- // private classes // ---------------------------------------------------------------------------- diff --git a/src/msw/tbar95.cpp b/src/msw/tbar95.cpp index aa23d55899..aa2ce7f683 100644 --- a/src/msw/tbar95.cpp +++ b/src/msw/tbar95.cpp @@ -398,8 +398,8 @@ bool wxToolBar95::CreateTools() delete [] buttons; - // TBBUTTONINFO struct declaration is missing from mingw32 headers -#if !defined(__GNUWIN32__) && !defined(__WATCOMC__) + // TBBUTTONINFO struct declaration is new (comctl32.dll 4.70+) +#if !defined(__GNUWIN32__) && !defined(__WATCOMC__) && !defined(__BORLANDC__) // adjust the controls size to fit nicely in the toolbar size_t nControls = controlIds.GetCount(); for ( size_t nCtrl = 0; nCtrl < nControls; nCtrl++ )