summaryrefslogtreecommitdiff
path: root/tests/mpf_compat.h
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-02-02 16:30:05 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2005-02-02 16:30:05 +0000
commit055a5c84a841d9e407effd41b75b801ebee8d600 (patch)
treefa3043be0793b010c03e706bb60306992830ddd4 /tests/mpf_compat.h
parent2e34c02b433b1efe1dfca061aae2cffe60b10ef0 (diff)
downloadmpfr-055a5c84a841d9e407effd41b75b801ebee8d600.tar.gz
Fix again. My previous fix was incorrect.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@3264 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/mpf_compat.h')
-rw-r--r--tests/mpf_compat.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/mpf_compat.h b/tests/mpf_compat.h
index 3c148255d..8fe8436fa 100644
--- a/tests/mpf_compat.h
+++ b/tests/mpf_compat.h
@@ -24,8 +24,8 @@ MA 02111-1307, USA. */
#include <string.h>
#include "gmp.h"
-#ifdef MPFR
#include "mpfr.h"
+#ifdef MPFR
#include "mpf2mpfr.h"
#endif
@@ -128,11 +128,7 @@ main ()
u = mpf_get_ui (x);
s = mpf_get_str (NULL, &exp, 10, 10, x);
/* MPF doen't have mpf_free_str */
-#ifdef MPFR
mpfr_free_str (s);
-#else
- (*__gmp_free_func) (s, strlen (s) + 1);
-#endif
/* Arithmetic Functions */