summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/IsNAN.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-25 18:46:05 +0000
committerChris Lattner <sabre@nondot.org>2004-10-25 18:46:05 +0000
commit2e493d9e754244c8516123ee29812411900b7871 (patch)
tree431ebfe48fbdea3bd326ef210ffb7285b2eb8c09 /llvm/lib/Support/IsNAN.cpp
parentd57638c4a71af7b01ad3c98e138063ad632b21ef (diff)
downloadbcm5719-llvm-2e493d9e754244c8516123ee29812411900b7871.tar.gz
bcm5719-llvm-2e493d9e754244c8516123ee29812411900b7871.zip
Patch to support MSVC, contributed by Morten Ofstad
llvm-svn: 17219
Diffstat (limited to 'llvm/lib/Support/IsNAN.cpp')
-rw-r--r--llvm/lib/Support/IsNAN.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Support/IsNAN.cpp b/llvm/lib/Support/IsNAN.cpp
index 75c813f41aa..f7bb4e3d8e3 100644
--- a/llvm/lib/Support/IsNAN.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud