diff --git a/Source/Core/Common/MathUtil.h b/Source/Core/Common/MathUtil.h index c5409be663..e91358c5c1 100644 --- a/Source/Core/Common/MathUtil.h +++ b/Source/Core/Common/MathUtil.h @@ -10,6 +10,10 @@ #include "Common/CommonTypes.h" +#ifdef _MSC_VER +#include +#endif + namespace MathUtil { template @@ -24,7 +28,6 @@ constexpr T SNANConstant() // will use __builtin_nans, which is improperly handled by the compiler and generates // a bad constant. Here we go back to the version MSVC used before the builtin. // TODO: Remove this and use numeric_limits directly whenever this bug is fixed. -#include template <> constexpr double SNANConstant()