]> granicus.if.org Git - graphviz/commitdiff
Made unistd.h for include on Windows.
authorErwin Janssen <erwinjanssen@outlook.com>
Mon, 20 Jun 2016 21:36:04 +0000 (23:36 +0200)
committerErwin Janssen <erwinjanssen@outlook.com>
Mon, 20 Jun 2016 21:36:04 +0000 (23:36 +0200)
windows/include/unistd.h [new file with mode: 0644]

diff --git a/windows/include/unistd.h b/windows/include/unistd.h
new file mode 100644 (file)
index 0000000..520c064
--- /dev/null
@@ -0,0 +1,12 @@
+#ifndef UNISTD_H
+#define UNISTD_H
+
+// io.h is the Windows equivalant of unistd.h
+#include <io.h>
+
+#define        F_OK    0
+#define        R_OK    4
+#define        W_OK    2
+#define        X_OK    1
+
+#endif