examples/utils.h: hack a solution for access() on windows
authorPaul Brossier <piem@piem.org>
Sat, 23 Apr 2016 19:07:57 +0000 (21:07 +0200)
committerPaul Brossier <piem@piem.org>
Sat, 23 Apr 2016 19:07:57 +0000 (21:07 +0200)
examples/utils.h

index 901029c..c9587dd 100644 (file)
 #endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>             // for access
+#elif defined(HAVE_WIN_HACKS)
+#include <io.h>
+#define access _access
+#define F_OK   0
 #endif
 #ifdef HAVE_MATH_H
 #include <math.h>               // for isfinite