summaryrefslogtreecommitdiff
path: root/win32/getopt
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-07-31 23:22:26 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2014-07-31 23:22:26 +0200
commitdb7860ff546be4c6aadaad840991e7226254fd84 (patch)
tree5a0f86275b0e0c89d35376d09ed638c173fd8a0f /win32/getopt
parent680a012532e2d962a55c1a588900c3b52c0d6b69 (diff)
Seems that MSVC is also mangling symbols. Moving externs up.
Diffstat (limited to 'win32/getopt')
-rw-r--r--win32/getopt/getopt.h9
1 files changed, 4 insertions, 5 deletions
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