#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"
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_