aboutsummaryrefslogtreecommitdiff
path: root/backends/PalmOS/Src
diff options
context:
space:
mode:
Diffstat (limited to 'backends/PalmOS/Src')
-rw-r--r--backends/PalmOS/Src/missing/ext_stdlib.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/backends/PalmOS/Src/missing/ext_stdlib.c b/backends/PalmOS/Src/missing/ext_stdlib.c
index 11a242145a..d1d0ce61af 100644
--- a/backends/PalmOS/Src/missing/ext_stdlib.c
+++ b/backends/PalmOS/Src/missing/ext_stdlib.c
@@ -115,16 +115,16 @@ ErrJumpBuf stdlib_errJumpBuf;
#define ERR_MAGIC 0xDADA
void exit(Int16 status) {
-#if (defined(PALMOS_ARM) && defined(COMPILE_ZODIAC))
- SysEventType event;
- event.eType = sysEventKeyDownEvent;
-#else
EventType event;
event.eType = keyDownEvent;
-#endif
+
event.data.keyDown.chr = vchrLaunch;
event.data.keyDown.modifiers = commandKeyMask;
+#ifdef PALMOS_ARM
+ SysEventAddUniqueToQueue(&event, 0, true);
+#else
EvtAddUniqueEventToQueue(&event, 0, true);
+#endif
ErrLongJump(stdlib_errJumpBuf, status == 0 ? 0xDADA : status);
}