From 0d65cc0f16640c109518914c0978732597330318 Mon Sep 17 00:00:00 2001 From: Robin Leroy Date: Sat, 30 Mar 2024 20:13:35 +0100 Subject: [PATCH] Define FMAPreventer on clang --- numerics/fma.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/numerics/fma.hpp b/numerics/fma.hpp index 24bea157c9..8948c523e4 100644 --- a/numerics/fma.hpp +++ b/numerics/fma.hpp @@ -43,7 +43,11 @@ inline bool const& UseHardwareFMA = FMAPreventer::use_hardware_fma; // The functions in this file unconditionally wrap the appropriate intrinsics. // The caller may only use them if |UseHardwareFMA| is true. inline bool const UseHardwareFMA = PRINCIPIA_USE_HARDWARE_FMA_DEFAULT; +#if PRINCIPIA_COMPILER_MSVC class FMAPreventer; // Undefined. +#else +class FMAPreventer {}; // Nothing to prevent. +#endif #endif #undef PRINCIPIA_USE_HARDWARE_FMA_DEFAULT