summaryrefslogtreecommitdiff
path: root/missing/isnan.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-20 15:45:15 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-20 15:45:15 +0000
commite91e9e7bbf1d93cdff89878b776a7824a9bc2d99 (patch)
treedb5ce495631901ac5458a7373cfcb0bae9e2fc56 /missing/isnan.c
parentbb4f36de3a032909c90f6fa72f2134f198958145 (diff)
* eval.c (rb_with_disable_interrupt): prohibit thread context
switch during proc execution. [ruby-dev:21899] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5232 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing/isnan.c')
-rw-r--r--missing/isnan.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/missing/isnan.c b/missing/isnan.c
index df424c2..459048e 100644
--- a/missing/isnan.c
+++ b/missing/isnan.c
@@ -1,31 +1,17 @@
/* public domain rewrite of isnan(3) */
-#ifdef _MSC_VER
-
-#include <float.h>
-int
-isnan(n)
- double n;
-{
- return _isnan(n);
-}
-
-#else
-
static int double_ne();
int
isnan(n)
- double n;
+ double n;
{
- return double_ne(n, n);
+ return double_ne(n, n);
}
-static
-int
+static int
double_ne(n1, n2)
- double n1, n2;
+ double n1, n2;
{
- return n1 != n2;
+ return n1 != n2;
}
-#endif