[llvm-commits] CVS: llvm/lib/Support/IsNAN.cpp

Chris Lattner lattner at cs.uiuc.edu
Mon Oct 25 11:46:16 PDT 2004



Changes in directory llvm/lib/Support:

IsNAN.cpp updated: 1.2 -> 1.3
---
Log message:

Patch to support MSVC, contributed by  Morten Ofstad


---
Diffs of the changes:  (+3 -0)

Index: llvm/lib/Support/IsNAN.cpp
diff -u llvm/lib/Support/IsNAN.cpp:1.2 llvm/lib/Support/IsNAN.cpp:1.3
--- llvm/lib/Support/IsNAN.cpp:1.2	Wed Sep  1 17:55:35 2004
+++ llvm/lib/Support/IsNAN.cpp	Mon Oct 25 13:46:05 2004
@@ -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






More information about the llvm-commits mailing list