This commit is contained in:
jvernet 2018-01-31 19:39:26 +01:00
commit 01f63e605a

View File

@ -432,12 +432,14 @@ int main(int argc, char **argv)
#if defined(__APPLE__) && defined(__MACH__) #if defined(__APPLE__) && defined(__MACH__)
// Mac OS X likes to pass in various options of its own, when launching an app. // Mac OS X likes to pass in various options of its own, when launching an app.
// Attempt to ignore these. // Attempt to ignore these.
const char * mac_psn_prefix = "-psn_"; if (argv[i]) {
if (strcmp(argv[i], "-NSDocumentRevisionsDebugMode") == 0) { const char * mac_psn_prefix = "-psn_";
argv[i] = NULL; if (strcmp(argv[i], "-NSDocumentRevisionsDebugMode") == 0) {
} else if (strncmp(mac_psn_prefix, argv[i], strlen(mac_psn_prefix)) == 0) { argv[i] = NULL;
argv[i] = NULL; } else if (strncmp(mac_psn_prefix, argv[i], strlen(mac_psn_prefix)) == 0) {
} argv[i] = NULL;
}
}
#endif #endif
} }