From 3c0b5d1a0d1bde840333295b2b69474cbc1a7aaf Mon Sep 17 00:00:00 2001 From: sean Date: Sun, 19 Nov 2023 01:20:30 +0100 Subject: [PATCH] Fix: Also check for __clang__ for unreachable macro --- include/fastgltf/util.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fastgltf/util.hpp b/include/fastgltf/util.hpp index 073b53595..b423dfe6b 100644 --- a/include/fastgltf/util.hpp +++ b/include/fastgltf/util.hpp @@ -67,7 +67,7 @@ #if FASTGLTF_CPP_23 #define FASTGLTF_UNREACHABLE std::unreachable(); -#elif defined(__GNUC__) +#elif defined(__GNUC__) || defined(__clang__) #define FASTGLTF_UNREACHABLE __builtin_unreachable(); #elif defined(_MSC_VER) #define FASTGLTF_UNREACHABLE __assume(false);