[tests] [win] include io.h for _access()
authorPaul Brossier <piem@piem.org>
Thu, 29 Nov 2018 14:10:29 +0000 (15:10 +0100)
committerPaul Brossier <piem@piem.org>
Thu, 29 Nov 2018 14:10:29 +0000 (15:10 +0100)
tests/utils_tests.h

index e272c2a..7915325 100644 (file)
 #define PATH_MAX 1024
 #endif
 
+#if defined(HAVE_WIN_HACKS) && !defined(__GNUC__)
+#include <io.h> // _access
+#endif
+
 // This macro is used to pass a string to msvc compiler: since msvc's -D flag
 // strips the quotes, we define the string without quotes and re-add them with
 // this macro.