From e4d374cf50faecafad3ef1a4e2c8896b030e50ef Mon Sep 17 00:00:00 2001 From: eban Date: Sun, 20 Apr 2003 14:35:41 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@3702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- win32/win32.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'win32/win32.c') diff --git a/win32/win32.c b/win32/win32.c index ab9a438ca..c0aff2561 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 // -- cgit