From 2bd933d87f9fec351fdff9c2a85698d42d32529d Mon Sep 17 00:00:00 2001 From: Brecht Sanders Date: Tue, 10 Jan 2023 22:44:11 +0100 Subject: [PATCH] Fix hwf.cpp for MinGW-w64 32-bit clang (#6529) Fix src/util/hwf.cpp for building with MinGW-w64 clang targetting Windows 32-bit. Without this fix there is an arror about `__control87_2` not being defined. --- src/util/hwf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/hwf.cpp b/src/util/hwf.cpp index b1f0c3cbe..8c20a4cda 100644 --- a/src/util/hwf.cpp +++ b/src/util/hwf.cpp @@ -48,7 +48,7 @@ Revision History: // clear to the compiler what instructions should be used. E.g., for sqrt(), the Windows compiler selects // the x87 FPU, even when /arch:SSE2 is on. // Luckily, these are kind of standardized, at least for Windows/Linux/macOS. -#if defined(__clang__) || defined(_M_ARM) && defined(_M_ARM64) +#if (defined(__clang__) && !defined(__MINGW32__)) || defined(_M_ARM) && defined(_M_ARM64) #undef USE_INTRINSICS #endif