Browse Source

FIxed build.

Branimir Karadžić 8 years ago
parent
commit
cf9acbfdb0
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/os.cpp

+ 6 - 0
src/os.cpp

@@ -12,6 +12,12 @@
 
 #include <stdio.h>
 
+#if BX_CRT_MSVC
+#	include <direct.h>
+#else
+#	include <unistd.h>
+#endif // BX_CRT_MSVC
+
 #if BX_PLATFORM_WINDOWS || BX_PLATFORM_WINRT
 #	include <windows.h>
 #	include <psapi.h>