Commit 38e6b287e7436758d68228a4cecae9dace7b750c

Edward Thomson 2019-06-15T22:25:10

mingw: use `struct stat`

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/clar.c b/tests/clar.c
index 27d35e1..459ece0 100644
--- a/tests/clar.c
+++ b/tests/clar.c
@@ -67,7 +67,7 @@
 #		define PRIxZ "Ix"
 #	endif
 
-#	ifdef _MSC_VER
+#	if defined(_MSC_VER) || defined(__MINGW32__)
 	typedef struct stat STAT_T;
 #	else
 	typedef struct _stat STAT_T;