diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-09-10 20:54:35 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-09-10 20:54:35 +0000 |
commit | 826e268ef28ba6e75e28a3d5f3de883f6ad3f665 (patch) | |
tree | 93836af813cd0eece6b696b80a87de0c0e11a978 /src/exceptions.c | |
parent | df10a35cd2f438fc8f55ef15a2bfecfa109ee006 (diff) | |
download | mpfr-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/exceptions.c')
-rw-r--r-- | src/exceptions.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/exceptions.c b/src/exceptions.c index 14b57e7e7..1ca3f062a 100644 --- a/src/exceptions.c +++ b/src/exceptions.c @@ -27,6 +27,12 @@ MPFR_THREAD_ATTR mpfr_flags_t __gmpfr_flags = 0; MPFR_THREAD_ATTR mpfr_exp_t __gmpfr_emin = MPFR_EMIN_DEFAULT; MPFR_THREAD_ATTR mpfr_exp_t __gmpfr_emax = MPFR_EMAX_DEFAULT; +#ifdef MPFR_WIN_THREAD_SAFE_DLL +mpfr_flags_t * __gmpfr_flags_f() { return &__gmpfr_flags; } +mpfr_exp_t * __gmpfr_emin_f() { return &__gmpfr_emin; } +mpfr_exp_t * __gmpfr_emax_f() { return &__gmpfr_emax; } +#endif + #undef mpfr_get_emin MPFR_COLD_FUNCTION_ATTR mpfr_exp_t |