Skip to content

Commit c27e33d

Browse files
committed
Work around a MINGW32 error by avoiding a duplicate optarg/optind declaration
1 parent 9122a5b commit c27e33d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cmdline.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,17 @@
3232
#endif
3333

3434
#include "boxes.h"
35+
#include "bxstring.h"
3536
#include "discovery.h"
3637
#include "query.h"
3738
#include "tools.h"
3839
#include "cmdline.h"
3940

4041

42+
#if !defined(__MINGW32__)
4143
extern char *optarg; /* for getopt() */
4244
extern int optind; /* for getopt() */
45+
#endif
4346

4447

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

0 commit comments

Comments
 (0)