From 9337d8bc3cde964ba804274fd6d09173c416614f Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Mon, 28 Oct 2024 22:21:23 +0100 Subject: Some more work on cross-platform configuration --- asl/config.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 asl/config.hpp (limited to 'asl/config.hpp') 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 -- cgit