aboutsummaryrefslogtreecommitdiff
path: root/zenstore/filecas.cpp
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-10-12 14:16:39 +0200
committerMartin Ridgers <[email protected]>2021-10-12 14:17:13 +0200
commit1fc5d199509422e303935a39f85a2c7f9149d9a7 (patch)
tree6037383bacd06bb48a1847b1e6bf7ee504f210de /zenstore/filecas.cpp
parentCorrected incorrect casing of include statements (diff)
downloadzen-1fc5d199509422e303935a39f85a2c7f9149d9a7.tar.xz
zen-1fc5d199509422e303935a39f85a2c7f9149d9a7.zip
Only include zencore/windows.h on Windows
Diffstat (limited to 'zenstore/filecas.cpp')
-rw-r--r--zenstore/filecas.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/zenstore/filecas.cpp b/zenstore/filecas.cpp
index 3e76de2f9..b63cd4ba7 100644
--- a/zenstore/filecas.cpp
+++ b/zenstore/filecas.cpp
@@ -23,12 +23,14 @@
#include <unordered_map>
// clang-format off
-#include <zencore/prewindows.h>
+#if ZEN_PLATFORM_WINDOWS
+# include <zencore/prewindows.h>
-struct IUnknown; // Workaround for "combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here" when using /permissive-
-#include <atlfile.h>
+ struct IUnknown; // Workaround for "combaseapi.h(229): error C2187: syntax error: 'identifier' was unexpected here" when using /permissive-
+# include <atlfile.h>
-#include <zencore/postwindows.h>
+# include <zencore/postwindows.h>
+#endif
// clang-format on
namespace zen {