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

This commit is contained in:
BruegelN
2019-05-15 01:19:17 +02:00
parent 49f4b7cfc8
commit d32e71784e
+3 -1
View File
@@ -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