Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-09-19 20:24:10 +0400
committerChristopher Faylor <me@cgf.cx>2001-09-19 20:24:10 +0400
commit9e5ad282f006529cc62d30bd3eb54b14f6e5bf1d (patch)
tree26f4a921fbcf93e951c280f2840816d3d38c8ecc /winsup/cygwin/lib
parentde6305a0e4144e607fff5d7ce0dab1391052726f (diff)
* lib/getopt.c (__progname): Don't declare if not compiling for cygwin.
Diffstat (limited to 'winsup/cygwin/lib')
-rw-r--r--winsup/cygwin/lib/getopt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/lib/getopt.c b/winsup/cygwin/lib/getopt.c
index 11f065fc2..e5e4f31a0 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)
{