summaryrefslogtreecommitdiff
path: root/win32/getopt
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-07-31 14:28:48 -0700
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-07-31 14:29:11 -0700
commitc3ac6151ae32339dc6358b9156126e93e25c02f1 (patch)
treef60463565ed21a2b125b544479f18e292c934f8d /win32/getopt
parentdb7860ff546be4c6aadaad840991e7226254fd84 (diff)
And the award of stupid error messages goes to Microsoft Visual Studio. Defining an extern with a default value silently drops the extern, but will obviously complain at link time that the symbol is duplicated several times.
Diffstat (limited to 'win32/getopt')
-rw-r--r--win32/getopt/getopt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/getopt/getopt.h b/win32/getopt/getopt.h
index aa1fbb0..83ecdae 100644
--- a/win32/getopt/getopt.h
+++ b/win32/getopt/getopt.h
@@ -6,8 +6,8 @@ extern "C" {
int getopt(int nargc, char ** nargv, char * ostr);
-extern int opterr = 1;
-extern int optind = 1;
+extern int opterr;
+extern int optind;
extern int optopt;
extern char * optarg;