diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-08-17 19:22:47 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-08-17 19:22:47 +0200 |
commit | 696bca8521935cc1dba3ba9601187efe8bcac516 (patch) | |
tree | 5322c38735d4b806982ad2bf8bbab012e8995585 /asl | |
parent | db34f151779fbfc72a5c6d373b9b5b25da9085b7 (diff) |
Fix Windows build
Diffstat (limited to 'asl')
-rw-r--r-- | asl/utility.hpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/asl/utility.hpp b/asl/utility.hpp index 33734a5..a94834d 100644 --- a/asl/utility.hpp +++ b/asl/utility.hpp @@ -1,12 +1,10 @@ #pragma once
-#ifdef _MSVC_VER_
-#elif defined(__clang_version__)
-#else
+#ifndef __clang__
#error Not a valid environment
#endif
-#ifdef _MSVC_VER_
+#ifdef _MSC_VER
#define ASL_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
#else
#define ASL_NO_UNIQUE_ADDRESS [[no_unique_address]]
|