diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-09-06 11:48:21 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2017-09-06 11:48:21 +0000 |
commit | f5d13e4e8cf01d28aaa0a9fddbd587714a97c0bd (patch) | |
tree | 7fa7853c0091bc59c4cbe5a55b1967d2b0be5ef4 /src/mpfr-gmp.c | |
parent | f1e67f66215f4a7b96bf494d4efaff0ee36285f7 (diff) | |
download | mpfr-f5d13e4e8cf01d28aaa0a9fddbd587714a97c0bd.tar.gz |
[src] Attempt to fix thread-safe DLL support with ICC and MSVC on
MS Windows without the GMP build directory. See:
https://sympa.inria.fr/sympa/arc/mpfr/2017-09/msg00009.html
https://sympa.inria.fr/sympa/arc/mpfr/2017-09/msg00014.html
i.e. for the mpfr_allocate_func, mpfr_reallocate_func & mpfr_free_func
external TLS variables, one does the same thing as what had been done
for the other ones (__gmpfr_flags, __gmpfr_emin, __gmpfr_emax, etc.).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11712 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/mpfr-gmp.c')
-rw-r--r-- | src/mpfr-gmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mpfr-gmp.c b/src/mpfr-gmp.c index 738d19e89..faf02e383 100644 --- a/src/mpfr-gmp.c +++ b/src/mpfr-gmp.c @@ -307,9 +307,9 @@ mpfr_assert_fail (const char *filename, int linenum, and http://software.intel.com/en-us/articles/intelr-fortran-compiler-for-mac-os-non_lazy_ptr-unresolved-references-from-linking Note that using ranlib -c or libtool -c is another fix. */ -MPFR_THREAD_ATTR void * (*mpfr_allocate_func) (size_t) = 0; -MPFR_THREAD_ATTR void * (*mpfr_reallocate_func) (void *, size_t, size_t) = 0; -MPFR_THREAD_ATTR void (*mpfr_free_func) (void *, size_t) = 0; +MPFR_THREAD_VAR (mpfr_allocate_func_t, mpfr_allocate_func, 0) +MPFR_THREAD_VAR (mpfr_reallocate_func_t, mpfr_reallocate_func, 0) +MPFR_THREAD_VAR (mpfr_free_func_t, mpfr_free_func, 0) void * mpfr_tmp_allocate (struct tmp_marker **tmp_marker, size_t size) |