diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-10-28 22:21:23 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-12-20 15:35:58 +0100 |
commit | 9337d8bc3cde964ba804274fd6d09173c416614f (patch) | |
tree | b30d25c20eab06175339fefee4eda0bbd6706d9c /asl/annotations.hpp | |
parent | 4a3185b782dabeb664fcf2fa4f6d17e36cf23d0e (diff) |
Some more work on cross-platform configuration
Diffstat (limited to 'asl/annotations.hpp')
-rw-r--r-- | asl/annotations.hpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/asl/annotations.hpp b/asl/annotations.hpp index 90e603f..a398e13 100644 --- a/asl/annotations.hpp +++ b/asl/annotations.hpp @@ -1,11 +1,10 @@ #pragma once
-#ifndef __clang__
- #error Not a valid environment
-#endif
+#include "asl/config.hpp"
+
-#ifdef _MSC_VER
+#if ASL_COMPILER_CLANG_CL
#define ASL_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
-#else
+#elif ASL_COMPILER_CLANG
#define ASL_NO_UNIQUE_ADDRESS [[no_unique_address]]
#endif
|