X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aaf7ab431b85d817af39d1a19b6d392ff5bd9379..26531700c7ec84872c60899ce6219954499086da:/include/wx/motif/icon.h diff --git a/include/wx/motif/icon.h b/include/wx/motif/icon.h index 1f2fab60b9..e6d52926ea 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(); @@ -63,7 +63,7 @@ public: { return !(*this == icon); } - DECLARE_DYNAMIC_CLASS(wxIcon); + DECLARE_DYNAMIC_CLASS(wxIcon) }; #endif // _WX_ICON_H_