X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/eff4ffbf4f9b38beda8df150766afc2f82ad04c8..4ebd02e913086c6ec131deb0d60ae65b01808afe:/include/wx/msw/cursor.h diff --git a/include/wx/msw/cursor.h b/include/wx/msw/cursor.h index 46b39045ca..1ff62a2011 100644 --- a/include/wx/msw/cursor.h +++ b/include/wx/msw/cursor.h @@ -12,7 +12,7 @@ #ifndef _WX_CURSOR_H_ #define _WX_CURSOR_H_ -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "cursor.h" #endif @@ -26,7 +26,7 @@ class WXDLLEXPORT wxCursor : public wxGDIImage public: // constructors wxCursor(); - wxCursor(const wxCursor& cursor) { Ref(cursor); } + wxCursor(const wxCursor& cursor) : wxGDIImage(cursor) { Ref(cursor); } wxCursor(const wxImage& image); wxCursor(const char bits[], int width, int height, int hotSpotX = -1, int hotSpotY = -1,