Fix-ups for macOS (#291)

* Do not use precomp headers target with GCC on Apple

* CMakeLists: also link to AudioUnit on Apple

* platform.cpp: add missing <unistd.h>

---------

Co-authored-by: ouwou <26526779+ouwou@users.noreply.github.com>
This commit is contained in:
Sergey Fedorov
2024-05-19 07:07:04 +08:00
committed by GitHub
parent ada3420dce
commit cba2f6c66e
2 changed files with 8 additions and 1 deletions

View File

@@ -4,6 +4,10 @@
#include <fstream>
#include <string>
#ifdef __APPLE__
#include <unistd.h>
#endif
#include <spdlog/spdlog.h>
using namespace std::literals::string_literals;