projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13a1665
)
Patch to support MSVC, contributed by Morten Ofstad
author
Chris Lattner
<sabre@nondot.org>
Mon, 25 Oct 2004 18:46:05 +0000
(18:46 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 25 Oct 2004 18:46:05 +0000
(18:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17219
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/IsNAN.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/IsNAN.cpp
b/lib/Support/IsNAN.cpp
index 75c813f41aabbccf6e73e23d742f0e7dce097b4d..f7bb4e3d8e3dfe09c7873d20f2b22bd584c330f6 100644
(file)
--- 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