Skip to content

Commit 8f784a8

Browse files
committed
Make sure getopt is properly defined
1 parent 8bad20b commit 8f784a8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/AllTests.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
#include "AllTests.h"
2-
3-
#include <time.h>
41
#if defined(_WIN32) || defined(WIN32)
52
#include "getopt.h"
63
#else
7-
#define _POSIX_C_SOURCE 2
4+
// For getopt
5+
#define _XOPEN_SOURCE 600
86
#include <unistd.h>
97
#endif
108

9+
#include <time.h>
10+
#include "AllTests.h"
11+
1112
typedef struct {
1213
int linear_alg;
1314
int phasing;

0 commit comments

Comments
 (0)