Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ca23d91

Browse files
committed
Made argc/argv processing work again under carbon.
1 parent 5550de3 commit ca23d91

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Mac/Python/macgetargv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,20 +264,20 @@ reset_ae_handlers()
264264
static void
265265
event_loop()
266266
{
267-
#ifndef TARGET_API_MAC_CARBON
268267
EventRecord event;
269268
int n;
270269
int ok;
271270

272271
got_one = 0;
273272
for (n = 0; n < 100 && !got_one; n++) {
273+
#ifndef TARGET_API_MAC_CARBON
274274
SystemTask();
275+
#endif
275276
ok = GetNextEvent(everyEvent, &event);
276277
if (ok && event.what == kHighLevelEvent) {
277278
AEProcessAppleEvent(&event);
278279
}
279280
}
280-
#endif
281281
}
282282

283283
/* Get the argv vector, return argc */

0 commit comments

Comments
 (0)