X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1d63b79352db5290a9f86428d193bd6a08ef32f..e22cf4b310aa1cac5f21879823aa26be4c804c24:/include/wx/palmos/app.h?ds=sidebyside diff --git a/include/wx/palmos/app.h b/include/wx/palmos/app.h index 1b294ed5d8..65f4303b01 100644 --- a/include/wx/palmos/app.h +++ b/include/wx/palmos/app.h @@ -12,10 +12,6 @@ #ifndef _WX_APP_H_ #define _WX_APP_H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "app.h" -#endif - #include "wx/event.h" #include "wx/icon.h" @@ -93,16 +89,21 @@ extern int WXDLLEXPORT wxEntry(); #define IMPLEMENT_WXWIN_MAIN \ + \ + extern "C" { \ + \ uint32_t PilotMain(uint16_t cmd, MemPtr cmdPBP, uint16_t launchFlags) \ { \ switch (cmd) { \ - case sysAppLaunchCmdNormalLaunch: \ + case 0 /* sysAppLaunchCmdNormalLaunch */ : \ wxEntry(); \ break; \ default: \ break; \ } \ - return errNone; \ + return 0 /* errNone */ ; \ + } \ + \ } #endif // _WX_APP_H_