diff options
Diffstat (limited to 'Build/source/libs/mpfr/mpfr-src/src/mpfr-thread.h')
-rw-r--r-- | Build/source/libs/mpfr/mpfr-src/src/mpfr-thread.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Build/source/libs/mpfr/mpfr-src/src/mpfr-thread.h b/Build/source/libs/mpfr/mpfr-src/src/mpfr-thread.h index 4c77d3f515b..1ccaa17c30a 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/mpfr-thread.h +++ b/Build/source/libs/mpfr/mpfr-src/src/mpfr-thread.h @@ -1,7 +1,7 @@ /* MPFR internal header related to thread-local variables. -Copyright 2005-2015 Free Software Foundation, Inc. -Contributed by the AriC and Caramel projects, INRIA. +Copyright 2005-2016 Free Software Foundation, Inc. +Contributed by the AriC and Caramba projects, INRIA. This file is part of the GNU MPFR Library. @@ -31,12 +31,9 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #ifndef MPFR_THREAD_ATTR # ifdef MPFR_USE_THREAD_SAFE # if defined(_MSC_VER) -# if defined(_WINDLL) -# error "Can't build MPFR DLL as thread safe." -# define MPFR_THREAD_ATTR -# else -# define MPFR_THREAD_ATTR __declspec( thread ) -# endif +# define MPFR_THREAD_ATTR __declspec( thread ) +# elif defined(MPFR_USE_C11_THREAD_SAFE) +# define MPFR_THREAD_ATTR _Thread_local # else # define MPFR_THREAD_ATTR __thread # endif |