X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c77c29207be61bd310a9d7299df985b151b0c177..c137ddc91f60c2b0f95765eab0e477644aa59057:/src/msw/cursor.cpp diff --git a/src/msw/cursor.cpp b/src/msw/cursor.cpp index 8705abeeea..3a6a3e9e80 100644 --- a/src/msw/cursor.cpp +++ b/src/msw/cursor.cpp @@ -17,10 +17,6 @@ // headers // ---------------------------------------------------------------------------- -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) - #pragma implementation "cursor.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -213,11 +209,15 @@ wxCursor::wxCursor(const wxImage& image) HCURSOR hcursor = wxBitmapToHCURSOR( wxBitmap(imageSized), hotSpotX, hotSpotY ); +#if wxUSE_WXDIB if ( !hcursor ) { wxLogWarning(_("Failed to create cursor.")); return; } +#else + HCURSOR hcursor = 0; +#endif m_refData = new wxCursorRefData(hcursor, true /* delete it later */); }