* mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per

NetBSD getopt_long.c.
This commit is contained in:
Danny Smith 2004-02-05 03:17:46 +00:00
parent d11508dd22
commit b5ce07f714
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
* mingwex/getopt.c: Define IS_POSIXLY_CORRECT as per
NetBSD getopt_long.c.
2004-02-05 Danny Smith <dannysmith@users.sourceforge.net>
* mingwex/strtold.c (__asctoe64) Reorganise. Fix setting error

View File

@ -73,7 +73,11 @@ extern char __declspec(dllimport) *__progname;
#define PRINT_ERROR ((opterr) && ((*options != ':') \
|| (IGNORE_FIRST && options[1] != ':')))
#define IS_POSIXLY_CORRECT (getenv("POSIXLY_INCORRECT_GETOPT") == NULL)
/* This differs from the cygwin implementation, which effectively defaults to
PC, but is consistent with the NetBSD implementation and doc's. */
#ifndef IS_POSIXLY_CORRECT
#define IS_POSIXLY_CORRECT (getenv("POSIXLY_CORRECT") != NULL)
#endif
#define PERMUTE (!IS_POSIXLY_CORRECT && !IGNORE_FIRST)
/* XXX: GNU ignores PC if *options == '-' */