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.
This commit is contained in:
Andrew M. Kuchling 2001-01-04 01:01:12 +00:00
parent 5ab366119e
commit 5a571639fc

View file

@ -195,7 +195,14 @@ static void fpe_reset(Sigfunc *handler)
#else
#include <i386/fpu_control.h>
#endif
#ifdef _FPU_SETCW
{
fpu_control_t cw = 0x1372;
_FPU_SETCW(cw);
}
#else
__setfpucw(0x1372);
#endif
PyOS_setsig(SIGFPE, handler);
/*-- NeXT -----------------------------------------------------------------*/