// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#include "wx/msw/private.h"
bool wxOwnerDrawn::IsMenuItem() const
{
// TODO: in 2.7, replace this with simple "return m_isMenuItem"
- return gs_menuItems.count(this) == 1;
+
+ // some versions of mingw have problems without const_cast when wxUSE_STL=1
+ return gs_menuItems.count(wx_const_cast(wxOwnerDrawn *, this)) == 1;
}