From bfc5639e6ba4900d1967d6776d2b4cdc2cea027d Mon Sep 17 00:00:00 2001 From: Gleb Mazovetskiy Date: Sat, 2 Jul 2022 11:36:56 +0100 Subject: [PATCH] Fix DVL_EXCEPTIONS on clang --- Source/utils/attributes.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/utils/attributes.h b/Source/utils/attributes.h index ec9340c68..cc27a0215 100644 --- a/Source/utils/attributes.h +++ b/Source/utils/attributes.h @@ -51,7 +51,7 @@ #define DVL_REINITIALIZES #endif -#if (defined(__GNUC__) && !defined(__EXCEPTIONS)) || FMT_MSC_VER && !_HAS_EXCEPTIONS +#if ((defined(__GNUC__) || defined(__clang__)) && !defined(__EXCEPTIONS)) || defined(_MSC_VER) && !_HAS_EXCEPTIONS #define DVL_EXCEPTIONS 0 #else #define DVL_EXCEPTIONS 1