2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

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...
This commit is contained in:
Weiyi Wang 2019-08-13 15:42:22 -04:00 committed by fearlessTobi
parent 246b515a86
commit 0580112940

View file

@ -6,7 +6,9 @@
#include <clocale> #include <clocale>
#include <memory> #include <memory>
#include <thread> #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. // VFS includes must be before glad as they will conflict with Windows file api, which uses defines.
#include "applets/error.h" #include "applets/error.h"