]>
Commit | Line | Data |
---|---|---|
cc1272f0 JB |
1 | --- ImageViewer-0.6.3/main.m.orig 2003-06-29 19:28:34.000000000 +0200 |
2 | +++ ImageViewer-0.6.3/main.m 2004-10-31 21:53:54.805121848 +0100 | |
3 | @@ -17,11 +17,17 @@ | |
4 | * Initialise and go!\r | |
5 | */\r | |
6 | \r | |
7 | +extern char **environ;\r | |
8 | +\r | |
9 | int main(int argc, const char *argv[]) \r | |
10 | {\r | |
11 | NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];\r | |
12 | AppController *controller;\r | |
13 | \r | |
14 | +#ifdef GS_PASS_ARGUMENTS\r | |
15 | + [NSProcessInfo initializeWithArguments: argv count: argc environment: environ];\r | |
16 | +#endif\r | |
17 | + \r | |
18 | [NSApplication sharedApplication];\r | |
19 | \r | |
20 | createMenu();\r |