summaryrefslogtreecommitdiff
path: root/src/const_catalan.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2015-09-10 13:51:48 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2015-09-10 13:51:48 +0000
commit5075de70a69719bcf26668bb7a5979b9b261272a (patch)
tree98c530abbb0a7b16ed7b266e15fdafc63acddc3d /src/const_catalan.c
parent1ab275e616dfb3d5d565c98db2e8f5ec1ce4e217 (diff)
downloadmpfr-5075de70a69719bcf26668bb7a5979b9b261272a.tar.gz
Applied changes from Stephan Tolksdorf:
https://gforge.inria.fr/tracker/download.php/136/619/19537/4980/changes.zip The MPFR build fails on my Linux machine with CFLAGS=-Werror=missing-prototypes because MPFR_WIN_THREAD_SAFE_DLL gets defined (this CFLAGS just allowed me to detect the problem with MPFR_WIN_THREAD_SAFE_DLL, which could have otherwise remained unnoticed). git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/win-thread-safe-dll@9680 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