Commit 5a571639 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

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.
parent 5ab36611
......@@ -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 -----------------------------------------------------------------*/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment