diff options
Diffstat (limited to 'sal/osl/w32/dllentry.c')
-rw-r--r-- | sal/osl/w32/dllentry.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sal/osl/w32/dllentry.c b/sal/osl/w32/dllentry.c index 150905162a5f..b77798beb05d 100644 --- a/sal/osl/w32/dllentry.c +++ b/sal/osl/w32/dllentry.c @@ -2,9 +2,9 @@ * * $RCSfile: dllentry.c,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: tra $ $Date: 2002-12-05 21:21:15 $ + * last change: $Author: hr $ $Date: 2003-03-26 16:46:10 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -63,6 +63,7 @@ #include <winsock.h> #include <osl/diagnose.h> #include <sal/types.h> +#include <float.h> #include <osl/diagnose.h> #include <osl/mutex.h> @@ -230,6 +231,10 @@ sal_Bool WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved InitDCOM(); + //We disable floating point exceptions. This is the usual state at program startup + //but on Windows 98 and ME this is not always the case. + _control87(_MCW_EM, _MCW_EM); + break; } |