for better windows compatibility

This commit is contained in:
Heng Li
2017-09-02 17:52:33 -04:00
parent b97620afed
commit 0a3ebdc916
7 changed files with 16 additions and 17 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
#include <stdlib.h>
#include <assert.h>
#ifdef WIN32
#include <io.h>
#if defined(WIN32) || defined(_WIN32)
#include <io.h> // for open(2)
#else
#include <unistd.h>
#endif