From 5a571639fcd687224f7b8b18093f50368bdced0e Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Thu, 4 Jan 2001 01:01:12 +0000 Subject: 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. --- Modules/fpectlmodule.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Modules/fpectlmodule.c b/Modules/fpectlmodule.c index 8034489..ff3ea76 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 -----------------------------------------------------------------*/ -- cgit v0.12