X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aaf7ab431b85d817af39d1a19b6d392ff5bd9379..3cb99894576612e347480d43c5f2e2550b6151cf:/include/wx/motif/icon.h?ds=inline diff --git a/include/wx/motif/icon.h b/include/wx/motif/icon.h index 1f2fab60b9..eba9735f4d 100644 --- a/include/wx/motif/icon.h +++ b/include/wx/motif/icon.h @@ -12,7 +12,7 @@ #ifndef _WX_ICON_H_ #define _WX_ICON_H_ -#if defined(__GNUG__) && !defined(__APPLE__) +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma interface "icon.h" #endif @@ -42,7 +42,7 @@ public: wxIcon(const wxIconLocation& loc) { - LoadFile(loc.GetFileName()); + LoadFile(loc.GetFileName(), wxBITMAP_TYPE_ANY); } ~wxIcon();