From 1745c81728d2126e46e02c405796328328c25471 Mon Sep 17 00:00:00 2001 From: Berthold Krevert Date: Tue, 29 Aug 2023 10:56:46 +0200 Subject: [PATCH] Ensure compilation with gcc Since gcc lacks support for vector builtins/the ext_vector_type attribute, incorporate the polyfill already utilized by the MSVC target Fixes https://github.com/rive-app/rive-cpp/issues/360 --- include/rive/math/simd.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/rive/math/simd.hpp b/include/rive/math/simd.hpp index 7f45c241..219e45aa 100644 --- a/include/rive/math/simd.hpp +++ b/include/rive/math/simd.hpp @@ -36,7 +36,7 @@ static_assert(std::numeric_limits::is_iec559, "Conformant IEEE 754 behavior for NaN and Inf is required."); -#if defined(__clang__) || defined(__GNUC__) +#if defined(__clang__) namespace rive {