aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/main.cpp
diff options
context:
space:
mode:
authorWeiyi Wang <wwylele@gmail.com>2019-08-13 15:42:22 -0400
committerfearlessTobi <thm.frey@gmail.com>2019-08-22 15:58:39 +0200
commit05801129406cb44e615925bd614f25067b92ac8f (patch)
tree390691bb88703ab23066f718549386845fddd1cd /src/yuzu/main.cpp
parent246b515a869ebe4a8d6c12773db85724e8156f5d (diff)
Guard unistd.h with MacOS only macro
Fix compile error on Windows caused by #4877 Weird, I thought I saw this guard during the code review...
Diffstat (limited to 'src/yuzu/main.cpp')
-rw-r--r--src/yuzu/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 693bb1fcf7..e871fef7b2 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -6,7 +6,9 @@
#include <clocale>
#include <memory>
#include <thread>
-#include <unistd.h>
+#ifdef __APPLE__
+#include <unistd.h> // for chdir
+#endif
// VFS includes must be before glad as they will conflict with Windows file api, which uses defines.
#include "applets/error.h"