ref: 6144cef6cc2768277af463063bbc6e1ca5c161cd
parent: 06cf47d3029576a4cd0dfc1256b40f77e18173c5
author: Paul Brossier <piem@piem.org>
date: Sat Apr 23 17:07:57 EDT 2016
examples/utils.h: hack a solution for access() on windows
--- a/examples/utils.h
+++ b/examples/utils.h
@@ -30,6 +30,10 @@
#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