diff options
| author | 2019-08-13 15:42:22 -0400 | |
|---|---|---|
| committer | 2019-08-22 15:58:39 +0200 | |
| commit | 05801129406cb44e615925bd614f25067b92ac8f (patch) | |
| tree | 390691bb88703ab23066f718549386845fddd1cd /src | |
| parent | citra_qt: on osx chdir to bundle dir to allow detection of user folder (diff) | |
| download | yuzu-05801129406cb44e615925bd614f25067b92ac8f.tar.gz yuzu-05801129406cb44e615925bd614f25067b92ac8f.tar.xz yuzu-05801129406cb44e615925bd614f25067b92ac8f.zip | |
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')
| -rw-r--r-- | src/yuzu/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 693bb1fcf..e871fef7b 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -6,7 +6,9 @@ | |||
| 6 | #include <clocale> | 6 | #include <clocale> |
| 7 | #include <memory> | 7 | #include <memory> |
| 8 | #include <thread> | 8 | #include <thread> |
| 9 | #include <unistd.h> | 9 | #ifdef __APPLE__ |
| 10 | #include <unistd.h> // for chdir | ||
| 11 | #endif | ||
| 10 | 12 | ||
| 11 | // VFS includes must be before glad as they will conflict with Windows file api, which uses defines. | 13 | // VFS includes must be before glad as they will conflict with Windows file api, which uses defines. |
| 12 | #include "applets/error.h" | 14 | #include "applets/error.h" |