summaryrefslogtreecommitdiff
path: root/src/const_catalan.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2015-09-10 20:54:35 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2015-09-10 20:54:35 +0000
commit826e268ef28ba6e75e28a3d5f3de883f6ad3f665 (patch)
tree93836af813cd0eece6b696b80a87de0c0e11a978 /src/const_catalan.c
parentdf10a35cd2f438fc8f55ef15a2bfecfa109ee006 (diff)
downloadmpfr-826e268ef28ba6e75e28a3d5f3de883f6ad3f665.tar.gz
Merged the win-thread-safe-dll branch: support build as thread-safe DLL
on Windows: changes from Stephan Tolksdorf https://gforge.inria.fr/tracker/download.php/136/619/19537/4980/changes.zip + a correction and some consistency checks. See MPFR bug 19537 on: https://gforge.inria.fr/tracker/index.php?func=detail&aid=19537&group_id=136&atid=619 git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9684 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/const_catalan.c')
-rw-r--r--src/const_catalan.c8
1 files changed, 8 insertions, 0 deletions
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