X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1d63b79352db5290a9f86428d193bd6a08ef32f..dec48aa578d886cf26559dc80141fac5f628ff08:/include/wx/palmos/app.h diff --git a/include/wx/palmos/app.h b/include/wx/palmos/app.h index 1b294ed5d8..60dbfb0aa1 100644 --- a/include/wx/palmos/app.h +++ b/include/wx/palmos/app.h @@ -93,16 +93,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_