X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6d167489bdf17d55d9bd11be834bc17277661063..c0e6c0513862fc9a33e5800526058193b7492d8b:/include/wx/msw/gdiobj.h?ds=sidebyside diff --git a/include/wx/msw/gdiobj.h b/include/wx/msw/gdiobj.h index e7285541d1..4b085fce52 100644 --- a/include/wx/msw/gdiobj.h +++ b/include/wx/msw/gdiobj.h @@ -12,7 +12,7 @@ #ifndef _WX_GDIOBJ_H_ #define _WX_GDIOBJ_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "gdiobj.h" #endif @@ -49,7 +49,7 @@ public: bool IsNull() const { return (m_refData == 0); } // Returns handle. - virtual WXHANDLE GetResourceHandle() { return 0; } + virtual WXHANDLE GetResourceHandle() const { return 0; } virtual bool GetVisible() { return m_visible; } virtual void SetVisible(bool v) { m_visible = v; }