X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/aaf7ab431b85d817af39d1a19b6d392ff5bd9379..2c990ba6d4f88e18e6666f61efe55c7a8b5cc948:/include/wx/motif/icon.h 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();