aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/IsNAN.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Support/IsNAN.cpp')
-rw-r--r--lib/Support/IsNAN.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Support/IsNAN.cpp b/lib/Support/IsNAN.cpp
index 75c813f41a..f7bb4e3d8e 100644
--- a/lib/Support/IsNAN.cpp
+++ b/lib/Support/IsNAN.cpp
@@ -19,6 +19,9 @@
#elif HAVE_STD_ISNAN_IN_CMATH
# include <cmath>
using std::isnan;
+#elif defined(_MSC_VER)
+#include <float.h>
+#define isnan _isnan
#else
# error "Don't know how to get isnan()"
#endif