summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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