diff options
Diffstat (limited to 'src/mpfr-thread.h')
-rw-r--r-- | src/mpfr-thread.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mpfr-thread.h b/src/mpfr-thread.h index 32d9aef41..1ccaa17c3 100644 --- a/src/mpfr-thread.h +++ b/src/mpfr-thread.h @@ -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 |