summaryrefslogtreecommitdiff
path: root/asl/config.hpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-10-28 22:21:23 +0100
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-12-20 15:35:58 +0100
commit9337d8bc3cde964ba804274fd6d09173c416614f (patch)
treeb30d25c20eab06175339fefee4eda0bbd6706d9c /asl/config.hpp
parent4a3185b782dabeb664fcf2fa4f6d17e36cf23d0e (diff)
Some more work on cross-platform configuration
Diffstat (limited to 'asl/config.hpp')
-rw-r--r--asl/config.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/asl/config.hpp b/asl/config.hpp
new file mode 100644
index 0000000..1e28252
--- /dev/null
+++ b/asl/config.hpp
@@ -0,0 +1,17 @@
+#pragma once
+
+#if defined(_WIN32)
+ #define ASL_OS_WINDOWS 1
+#elif defined(__linux__)
+ #define ASL_OS_LINUX 1
+#else
+ #error Unknown OS
+#endif
+
+#if defined(__clang__) && defined(_MSC_VER)
+ #define ASL_COMPILER_CLANG_CL 1
+#elif defined(__clang__)
+ #define ASL_COMPILER_CLANG 1
+#else
+ #error Unknown compiler
+#endif