From c3ac6151ae32339dc6358b9156126e93e25c02f1 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 31 Jul 2014 14:28:48 -0700 Subject: 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. --- win32/getopt/getopt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'win32/getopt') 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; -- cgit v1.2.3