ithewei 6 years ago
parent
commit
8a75d85024
1 changed files with 4 additions and 1 deletions
  1. 4 1
      hplatform.h

+ 4 - 1
hplatform.h

@@ -103,7 +103,6 @@
     #define MKDIR(dir) mkdir(dir)
 #else
     #include <unistd.h>
-    #include <pthread.h>
     #include <dirent.h> // for mkdir,rmdir,chdir,getcwd
     #include <sys/time.h>  // for gettimeofday
 
@@ -156,4 +155,8 @@ typedef unsigned __int64    uint64_t;
 #include <sys/types.h>
 #include <sys/stat.h>
 
+#ifndef _MSC_VER
+#include <pthread.h>
+#endif
+
 #endif  // HW_PLATFORM_H_