Skip to content

Commit

Permalink
Fix hwf.cpp for MinGW-w64 32-bit clang (#6529)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
brechtsanders committed Jan 10, 2023
1 parent c3e3114 commit 2bd933d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/hwf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2bd933d

Please sign in to comment.