diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-09-10 13:40:33 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-09-10 13:40:33 +0000 |
commit | 268df0f5f40896539ef9436df17191ff184a489d (patch) | |
tree | e1fdb117a6ce8fd66a2631b2b39ddfe0c2a3f16e /src/const_pi.c | |
parent | e9943bfe3f352c6c199c40ca4c2df3a654a4e276 (diff) | |
download | mpfr-268df0f5f40896539ef9436df17191ff184a489d.tar.gz |
Applied changes from Stephan Tolksdorf:
https://gforge.inria.fr/tracker/download.php/136/619/19537/4980/changes.zip
(with some tests, the MPFR build fails on my Linux machine because
MPFR_WIN_THREAD_SAFE_DLL gets defined).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/win-thread-safe-dll@9677 280ebfd0-de03-0410-8827-d642c229c3f4
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 |