* lib/getopt.c (__progname): Don't declare if not compiling for cygwin.
This commit is contained in:
parent
de6305a0e4
commit
9e5ad282f0
|
@ -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>
|
Wed Sep 19 18:07:00 2001 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* lib/getopt.c (getopt_long): Avoid compiler warning.
|
* lib/getopt.c (getopt_long): Avoid compiler warning.
|
||||||
|
|
|
@ -70,6 +70,8 @@ __weak_alias(getopt_long,_getopt_long)
|
||||||
|
|
||||||
#ifndef __CYGWIN__
|
#ifndef __CYGWIN__
|
||||||
#define __progname __argv[0]
|
#define __progname __argv[0]
|
||||||
|
#else
|
||||||
|
extern char __declspec(dllimport) *__progname;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define IGNORE_FIRST (*options == '-' || *options == '+')
|
#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 illoptchar[] = "unknown option -- %c";
|
||||||
static const char illoptstring[] = "unknown option -- %s";
|
static const char illoptstring[] = "unknown option -- %s";
|
||||||
|
|
||||||
extern char __declspec(dllimport) *__progname;
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_vwarnx(const char *fmt, va_list ap)
|
_vwarnx(const char *fmt, va_list ap)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue