aboutsummaryrefslogtreecommitdiff
path: root/zencore/filesystem.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-12-16 13:36:50 +0100
committerMartin Ridgers <[email protected]>2022-01-05 09:34:12 +0100
commit44282b2da6334a83c6c5def96d9a83fde317f6e9 (patch)
tree90daecc5f6f4f47e2f856884172158fa50a32911 /zencore/filesystem.cpp
parentAdd compiler flags for GCC-compatible toolchains on Mac too (diff)
downloadzen-44282b2da6334a83c6c5def96d9a83fde317f6e9.tar.xz
zen-44282b2da6334a83c6c5def96d9a83fde317f6e9.zip
Added block of POSIX includes for Mac
Diffstat (limited to 'zencore/filesystem.cpp')
-rw-r--r--zencore/filesystem.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp
index 9274b35de..fa9183945 100644
--- a/zencore/filesystem.cpp
+++ b/zencore/filesystem.cpp
@@ -18,7 +18,9 @@
# include <atlfile.h>
# include <winioctl.h>
# include <winnt.h>
-#else
+#endif
+
+#if ZEN_PLATFORM_LINUX
# include <dirent.h>
# include <fcntl.h>
# include <sys/stat.h>
@@ -26,6 +28,13 @@
# include <unistd.h>
#endif
+#if ZEN_PLATFORM_MAC
+# include <dirent.h>
+# include <fcntl.h>
+# include <sys/stat.h>
+# include <unistd.h>
+#endif
+
#include <filesystem>
#include <gsl/gsl-lite.hpp>