// 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+