From db7860ff546be4c6aadaad840991e7226254fd84 Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Thu, 31 Jul 2014 23:22:26 +0200 Subject: Seems that MSVC is also mangling symbols. Moving externs up. --- win32/getopt/getopt.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'win32') diff --git a/win32/getopt/getopt.h b/win32/getopt/getopt.h index f77cb17..aa1fbb0 100644 --- a/win32/getopt/getopt.h +++ b/win32/getopt/getopt.h @@ -6,12 +6,11 @@ extern "C" { int getopt(int nargc, char ** nargv, char * ostr); -#ifdef __cplusplus -} -#endif - - extern int opterr = 1; extern int optind = 1; extern int optopt; extern char * optarg; + +#ifdef __cplusplus +} +#endif -- cgit v1.2.3