Browse Source

path_to_executable: only include unistd.h if not on windows.

BruegelN 6 years ago
parent
commit
d32e71784e
1 changed files with 3 additions and 1 deletions
  1. 3 1
      include/igl/path_to_executable.cpp

+ 3 - 1
include/igl/path_to_executable.cpp

@@ -11,9 +11,11 @@
 #endif
 #if defined(_WIN32)
 #  include <windows.h>
+#else
+  #include <unistd.h>
 #endif
 #include <stdint.h>
-#include <unistd.h>
+
 IGL_INLINE std::string igl::path_to_executable()
 {
   // http://pastebin.com/ffzzxPzi