mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
win32 fix for over-compliant getopt
This commit is contained in:
parent
22fe9de3f9
commit
6ec1cfe389
1 changed files with 6 additions and 0 deletions
|
@ -784,6 +784,12 @@ main (int argc, char **argv)
|
|||
|
||||
start = Sys_DoubleTime ();
|
||||
|
||||
#ifdef _WIN32
|
||||
if (putenv ("POSIXLY_INCORRECT_GETOPT=1")) {
|
||||
fprintf (stderr, "Warning: putenv failed\n");
|
||||
}
|
||||
#endif
|
||||
|
||||
this_program = NORMALIZE (argv[0]);
|
||||
|
||||
DecodeArgs (argc, argv);
|
||||
|
|
Loading…
Reference in a new issue