Less drastic compile fix
authorJulian Smart <julian@anthemion.co.uk>
Thu, 26 Oct 2006 10:37:21 +0000 (10:37 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 26 Oct 2006 10:37:21 +0000 (10:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/menu.cpp

index 5d48faebf45e0e4d59b75d1e0ba02e48c9c40633..65affb6e59642c1a6a8daf52ebc3aa2c506a9784 100644 (file)
@@ -416,7 +416,7 @@ bool wxMenu::DoInsertOrAppend(wxMenuItem *pItem, size_t pos)
             // while our owner-drawn code is not
 
             // first compile-time check
-#if defined(MIIM_BITMAP) && !defined(__MINGW32__)
+#if defined(MIIM_BITMAP) && (_WIN32_WINNT >= 0x0500)
             WinStruct<MENUITEMINFO> mii;
 
             // now run-time one: MIIM_BITMAP only works under WinME/2000+