diff options
Diffstat (limited to 'src/const_pi.c')
-rw-r--r-- | src/const_pi.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/const_pi.c b/src/const_pi.c index 6fd4d3834..cc96dc4a3 100644 --- a/src/const_pi.c +++ b/src/const_pi.c @@ -31,6 +31,16 @@ MPFR_DECL_INIT_CACHE(__gmpfr_logging_pi, mpfr_const_pi_internal); MPFR_THREAD_ATTR mpfr_cache_ptr __gmpfr_cache_const_pi = __gmpfr_normal_pi; #endif +#ifdef MPFR_WIN_THREAD_SAFE_DLL +# ifndef MPFR_USE_LOGGING +mpfr_cache_t * __gmpfr_cache_const_pi_f() { return &__gmpfr_cache_const_pi; } +# else +mpfr_cache_t * __gmpfr_normal_pi_f() { return &__gmpfr_normal_pi; } +mpfr_cache_t * __gmpfr_logging_pi_f() { return &__gmpfr_logging_pi; } +mpfr_cache_ptr * __gmpfr_cache_const_pi_f() { return &__gmpfr_cache_const_pi; } +# endif +#endif + /* Set User Interface */ #undef mpfr_const_pi int |