From: Andrew M. Kuchling Date: Thu, 4 Jan 2001 01:01:12 +0000 (+0000) Subject: Patch #103012: Update fpectlmodule for current glibc; X-Git-Tag: v2.1a1~435 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5a571639fcd687224f7b8b18093f50368bdced0e;p=thirdparty%2FPython%2Fcpython.git Patch #103012: Update fpectlmodule for current glibc; The _setfpucw() function/macro doesn't seem to exist any more; instead there's an _FPU_SETCW macro. --- diff --git a/Modules/fpectlmodule.c b/Modules/fpectlmodule.c index 803448960a48..ff3ea76dd53b 100644 --- a/Modules/fpectlmodule.c +++ b/Modules/fpectlmodule.c @@ -195,7 +195,14 @@ static void fpe_reset(Sigfunc *handler) #else #include #endif +#ifdef _FPU_SETCW + { + fpu_control_t cw = 0x1372; + _FPU_SETCW(cw); + } +#else __setfpucw(0x1372); +#endif PyOS_setsig(SIGFPE, handler); /*-- NeXT -----------------------------------------------------------------*/