mirror of https://github.com/python/cpython.git
Issue #24974: Force fp-model precice in mpdecimal.c on Windows
As suggested by Steve Dower and approved by Stefan Krah.
This commit is contained in:
parent
ca30b02abe
commit
fda673d59f
|
@ -43,6 +43,7 @@
|
||||||
#ifdef PPRO
|
#ifdef PPRO
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
|
#pragma float_control(precise, on)
|
||||||
#pragma fenv_access(on)
|
#pragma fenv_access(on)
|
||||||
#elif !defined(__OpenBSD__) && !defined(__NetBSD__)
|
#elif !defined(__OpenBSD__) && !defined(__NetBSD__)
|
||||||
/* C99 */
|
/* C99 */
|
||||||
|
|
Loading…
Reference in New Issue