summaryrefslogtreecommitdiff
path: root/src/exceptions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exceptions.c')
-rw-r--r--src/exceptions.c6
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