Commit 6da692c6 authored by Jack Jansen's avatar Jack Jansen

Made argc/argv processing work again under carbon.

parent 1bfc6dee
...@@ -264,20 +264,20 @@ reset_ae_handlers() ...@@ -264,20 +264,20 @@ reset_ae_handlers()
static void static void
event_loop() event_loop()
{ {
#ifndef TARGET_API_MAC_CARBON
EventRecord event; EventRecord event;
int n; int n;
int ok; int ok;
got_one = 0; got_one = 0;
for (n = 0; n < 100 && !got_one; n++) { for (n = 0; n < 100 && !got_one; n++) {
#ifndef TARGET_API_MAC_CARBON
SystemTask(); SystemTask();
#endif
ok = GetNextEvent(everyEvent, &event); ok = GetNextEvent(everyEvent, &event);
if (ok && event.what == kHighLevelEvent) { if (ok && event.what == kHighLevelEvent) {
AEProcessAppleEvent(&event); AEProcessAppleEvent(&event);
} }
} }
#endif
} }
/* Get the argv vector, return argc */ /* Get the argv vector, return argc */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment