From 268df0f5f40896539ef9436df17191ff184a489d Mon Sep 17 00:00:00 2001 From: vlefevre Date: Thu, 10 Sep 2015 13:40:33 +0000 Subject: 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 --- src/const_catalan.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/const_catalan.c') diff --git a/src/const_catalan.c b/src/const_catalan.c index 0e4402d76..6cdd98c90 100644 --- a/src/const_catalan.c +++ b/src/const_catalan.c @@ -26,6 +26,14 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., /* Declare the cache */ MPFR_DECL_INIT_CACHE(__gmpfr_cache_const_catalan, mpfr_const_catalan_internal); +#ifdef MPFR_WIN_THREAD_SAFE_DLL +mpfr_cache_t * +__gmpfr_cache_const_catalan_f() +{ + return &__gmpfr_cache_const_catalan; +} +#endif + /* Set User Interface */ #undef mpfr_const_catalan int -- cgit v1.2.1