* lib/getopt.c (__progname): Don't declare if not compiling for cygwin.

This commit is contained in:
Christopher Faylor
2001-09-19 16:24:10 +00:00
parent de6305a0e4
commit 9e5ad282f0
2 changed files with 6 additions and 2 deletions

View File

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