win32 fix for over-compliant getopt

This commit is contained in:
Chris Ison 2004-02-05 03:27:35 +00:00
parent 22fe9de3f9
commit 6ec1cfe389

View file

@ -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);