Skip to content

Commit 4c3ce79

Browse files
committed
Work around a MINGW32 error by avoiding a duplicate optarg/optind declaration
1 parent e3ec4c0 commit 4c3ce79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/cmdline.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@
4040
#include "cmdline.h"
4141

4242

43+
#if !defined(__MINGW32__)
4344
extern char *optarg; /* for getopt() */
4445
extern int optind; /* for getopt() */
46+
#endif
4547

4648

4749
/* default tab stop distance (part of -t) */

0 commit comments

Comments
 (0)