Browse Source

Exclude other platforms except Windows and Linux.

Huy Nguyen 8 years ago
parent
commit
dc1746bc6e
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/Urho3D/Core/ProcessUtils.cpp

+ 2 - 1
Source/Urho3D/Core/ProcessUtils.cpp

@@ -50,12 +50,13 @@
 #include <ntdef.h> 
 #else 
 #endif 
-#else
+#elif defined(__linux__)
 #include <pwd.h> 
 #include <unistd.h>
 #include <sys/sysinfo.h>
 #include <sys/utsname.h>
 #include <limits.h> // For HOST_NAME_MAX. 
+#else
 #endif
 
 #if defined(__EMSCRIPTEN__) && defined(__EMSCRIPTEN_PTHREADS__)