From 7a0d28d8e9b299c1e4e9572cd51f05532cfba62f Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Fri, 14 Jan 2000 22:50:09 +0000 Subject: [PATCH] SN: Added #pragma implementation. Make it compile even if wxOwnerDrawn == 0 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/os2/menuitem.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/os2/menuitem.cpp b/src/os2/menuitem.cpp index a5a809c051..6382eaa1d4 100644 --- a/src/os2/menuitem.cpp +++ b/src/os2/menuitem.cpp @@ -13,6 +13,10 @@ // headers & declarations // ============================================================================ +#ifdef __GNUG__ + #pragma implementation "menuitem.h" +#endif + // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -76,9 +80,9 @@ wxMenuItem::wxMenuItem(wxMenu *pParentMenu, const wxString& text, const wxString& strHelp, bool bCheckable, - wxMenu *pSubMenu) : + wxMenu *pSubMenu) #if wxUSE_OWNER_DRAWN - wxOwnerDrawn(text, bCheckable) + : wxOwnerDrawn(text, bCheckable) #endif // owner drawn { wxASSERT_MSG( pParentMenu != NULL, wxT("a menu item should have a parent") ); -- 2.45.2