summaryrefslogtreecommitdiff
path: root/Source/Core/Common
diff options
context:
space:
mode:
authorMatthew Parlane <parlane@gmail.com>2017-03-08 20:21:42 +1300
committerGitHub <noreply@github.com>2017-03-08 20:21:42 +1300
commit8ff8c26f1abdb1374b4d64bfb4b201191d210057 (patch)
treec958e1b82f3b250033c62034362bda8913c566d1 /Source/Core/Common
parent028da93d357bd3085c8bef21a72b679a3d11b4c7 (diff)
parentb69d3f13cba0d29b66462e82974dc01c75510e8e (diff)
Merge pull request #5037 from Orphis/vs2017
VS2017 support (with bonus CMake integration)
Diffstat (limited to 'Source/Core/Common')
-rw-r--r--Source/Core/Common/MathUtil.h5
1 files changed, 4 insertions, 1 deletions
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 <intrin.h>
+#endif
+
namespace MathUtil
{
template <typename T>
@@ -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 <intrin.h>
template <>
constexpr double SNANConstant()