summaryrefslogtreecommitdiff
path: root/src/const_catalan.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-10-24 12:53:55 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-10-24 12:53:55 +0000
commitba22e270f5ffebac8034ea916f9d4201b8ef1816 (patch)
treed11d92957b2be704231f6a40368a9e8f04fd12cd /src/const_catalan.c
parentadf2759eaaeddbe89a305dafb2185f4a998aa1e2 (diff)
downloadmpfr-ba22e270f5ffebac8034ea916f9d4201b8ef1816.tar.gz
[src] Support build as thread-safe DLL on Windows: clean-up.
* Increased the use of macros to avoid some code duplication (with risks of typos) and to prevent the problems related to thread-safe DLL from appearing in the .c files. * The prototypes of the functions to access the address of a TLS variable are now defined. Otherwise one gets warnings: https://sympa.inria.fr/sympa/arc/mpfr/2016-10/msg00004.html git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10916 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/const_catalan.c')
-rw-r--r--src/const_catalan.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/const_catalan.c b/src/const_catalan.c
index 41b6bd97d..d7daa36e1 100644
--- a/src/const_catalan.c
+++ b/src/const_catalan.c
@@ -24,15 +24,7 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
#include "mpfr-impl.h"
/* 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
+MPFR_DECL_INIT_CACHE (__gmpfr_cache_const_catalan, mpfr_const_catalan_internal)
/* Set User Interface */
#undef mpfr_const_catalan