diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2014-07-31 14:28:48 -0700 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2014-07-31 14:29:11 -0700 |
commit | c3ac6151ae32339dc6358b9156126e93e25c02f1 (patch) | |
tree | f60463565ed21a2b125b544479f18e292c934f8d /win32/getopt | |
parent | db7860ff546be4c6aadaad840991e7226254fd84 (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.h | 4 |
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; |