diff options
author | Christopher Faylor <me@cgf.cx> | 2001-09-19 16:24:10 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-09-19 16:24:10 +0000 |
commit | 9e5ad282f006529cc62d30bd3eb54b14f6e5bf1d (patch) | |
tree | 26f4a921fbcf93e951c280f2840816d3d38c8ecc /winsup | |
parent | de6305a0e4144e607fff5d7ce0dab1391052726f (diff) | |
download | newlib-9e5ad282f006529cc62d30bd3eb54b14f6e5bf1d.zip newlib-9e5ad282f006529cc62d30bd3eb54b14f6e5bf1d.tar.gz newlib-9e5ad282f006529cc62d30bd3eb54b14f6e5bf1d.tar.bz2 |
* lib/getopt.c (__progname): Don't declare if not compiling for cygwin.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/lib/getopt.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 2d58064..0fc6b0b 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +Wed Sep 19 12:24:09 2001 Christopher Faylor <cgf@cygnus.com> + + * lib/getopt.c (__progname): Don't declare if not compiling for cygwin. + Wed Sep 19 18:07:00 2001 Corinna Vinschen <corinna@vinschen.de> * lib/getopt.c (getopt_long): Avoid compiler warning. diff --git a/winsup/cygwin/lib/getopt.c b/winsup/cygwin/lib/getopt.c index 11f065f..e5e4f31 100644 --- a/winsup/cygwin/lib/getopt.c +++ b/winsup/cygwin/lib/getopt.c @@ -70,6 +70,8 @@ __weak_alias(getopt_long,_getopt_long) #ifndef __CYGWIN__ #define __progname __argv[0] +#else +extern char __declspec(dllimport) *__progname; #endif #define IGNORE_FIRST (*options == '-' || *options == '+') @@ -106,8 +108,6 @@ static const char noarg[] = "option doesn't take an argument -- %.*s"; static const char illoptchar[] = "unknown option -- %c"; static const char illoptstring[] = "unknown option -- %s"; -extern char __declspec(dllimport) *__progname; - static void _vwarnx(const char *fmt, va_list ap) { |