diff options
Diffstat (limited to 'Build/source/libs/mpfr/mpfr-src/src/set_rnd.c')
-rw-r--r-- | Build/source/libs/mpfr/mpfr-src/src/set_rnd.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/Build/source/libs/mpfr/mpfr-src/src/set_rnd.c b/Build/source/libs/mpfr/mpfr-src/src/set_rnd.c index d6faa7b487b..10fc232312d 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/set_rnd.c +++ b/Build/source/libs/mpfr/mpfr-src/src/set_rnd.c @@ -1,8 +1,8 @@ /* mpfr_set_default_rounding_mode -- set the default rounding mode mpfr_get_default_rounding_mode -- get the default rounding mode -Copyright 1999, 2001, 2004-2015 Free Software Foundation, Inc. -Contributed by the AriC and Caramel projects, INRIA. +Copyright 1999, 2001, 2004-2016 Free Software Foundation, Inc. +Contributed by the AriC and Caramba projects, INRIA. This file is part of the GNU MPFR Library. @@ -23,7 +23,15 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include "mpfr-impl.h" -mpfr_rnd_t MPFR_THREAD_ATTR __gmpfr_default_rounding_mode = MPFR_RNDN; +MPFR_THREAD_ATTR mpfr_rnd_t __gmpfr_default_rounding_mode = MPFR_RNDN; + +#ifdef MPFR_WIN_THREAD_SAFE_DLL +mpfr_rnd_t * +__gmpfr_default_rounding_mode_f() +{ + return &__gmpfr_default_rounding_mode; +} +#endif void mpfr_set_default_rounding_mode (mpfr_rnd_t rnd_mode) |