+#if wxOSX_USE_COCOA_OR_CARBON
+ #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICON_RESOURCE
+ #include "wx/osx/icon.h"
+#else
+ #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_PNG_RESOURCE
+ #include "wx/generic/icon.h"
+#endif
+#elif defined(__WXCOCOA__)
+ #define wxICON_DEFAULT_TYPE wxBITMAP_TYPE_ICON_RESOURCE
+ #include "wx/cocoa/icon.h"