summaryrefslogtreecommitdiff
path: root/missing/isnan.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-01-17 08:37:53 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-01-17 08:37:53 +0000
commitdde62bcd2efbb3825d982326896ab774e73e4218 (patch)
tree6a421d3818dd390cf8f6b2c5544726a8950e1401 /missing/isnan.c
parente43877719bd4bbd12e493e896a0f98c5b349937b (diff)
2000-01-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing/isnan.c')
-rw-r--r--missing/isnan.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/missing/isnan.c b/missing/isnan.c
index 96bb93b..3c56765 100644
--- a/missing/isnan.c
+++ b/missing/isnan.c
@@ -1,3 +1,15 @@
+#ifdef _MSC_VER
+
+#include <float.h>
+int
+isnan(n)
+ double n;
+{
+ return _isnan(n);
+}
+
+#else
+
static int double_ne();
int
@@ -14,3 +26,4 @@ double_ne(n1, n2)
{
return n1 != n2;
}
+#endif