diff options
Diffstat (limited to 'src/mpfr-thread.h')
-rw-r--r-- | src/mpfr-thread.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mpfr-thread.h b/src/mpfr-thread.h index fb69c826f..c3d7d2bf8 100644 --- a/src/mpfr-thread.h +++ b/src/mpfr-thread.h @@ -31,7 +31,13 @@ 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) -# define MPFR_THREAD_ATTR __declspec( thread ) +# if defined(_WINDLL) +/* see http://msdn.microsoft.com/en-us/library/9w1sdazb%28v=vs.80%29.aspx */ +# error "Can't build MPFR DLL as thread safe." +# define MPFR_THREAD_ATTR +# else +# define MPFR_THREAD_ATTR __declspec( thread ) +# endif # elif defined(MPFR_USE_C11_THREAD_SAFE) # define MPFR_THREAD_ATTR _Thread_local # else |