summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
authoreban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-20 14:35:41 +0000
committereban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-04-20 14:35:41 +0000
commitb7e6fc019cff276f04a076d094561b997facf83d (patch)
tree445a48273d5deb241b6a0d962080f082f4c5bd66 /win32
parent4b0276d818c5d3095a3a0c3ca17cabf61d6cea6c (diff)
* win32/win32.c (NtInitialize): set the floating-point control word
on bcc32. * win32/win32.h, bcc32/Makefile.sub: use missing/isinf.c, should not use _finite() because it returns 0 if NaN. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c4
-rw-r--r--win32/win32.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/win32/win32.c b/win32/win32.c
index ab9a438ca1a..c0aff256192 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -363,6 +363,10 @@ NtInitialize(int *argc, char ***argv)
WORD version;
int ret;
+#ifdef __BORLANDC__
+ _controlfp(0x5, 0x5);
+#endif
+
//
// subvert cmd.exe's feeble attempt at command line parsing
//
diff --git a/win32/win32.h b/win32/win32.h
index f8bf3774098..b378fb23cdc 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -177,9 +177,6 @@ extern pid_t rb_w32_getpid(void);
#ifdef __BORLANDC__
#include <float.h>
-#ifndef isinf
-#define isinf !_finite
-#endif
#ifndef isnan
#define isnan _isnan
#endif