diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2013-05-22 11:50:08 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2013-05-22 11:50:08 +0000 |
commit | ac8ca02b894a0a71e8ffae756ef97117d833841a (patch) | |
tree | e982b0c2c379b7415d63e510006720d6d84cb8e7 /acinclude.m4 | |
parent | e23499093f66dff85e10d7192d34f2f2891d65e5 (diff) | |
download | mpfr-ac8ca02b894a0a71e8ffae756ef97117d833841a.tar.gz |
replaced macros NPRINTF_T and NPRINTF_L by positive versions
PRINTF_T and PRINTF_L, now we don't assume that %td and %Lf are supported
when we don't check it (for example when cross-compiling, or under Windows
when GMP is a dynamic library)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@8523 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index 28ccecfce..6727f69ef 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1060,7 +1060,8 @@ MPFR_FUNC_GMP_PRINTF_SPEC([lld], [long long int], [ MPFR_FUNC_GMP_PRINTF_SPEC([Lf], [long double], [ #include <gmp.h> - ],, + ], + [AC_DEFINE([PRINTF_L], 1, [gmp_printf can read long double])], [AC_DEFINE([NPRINTF_L], 1, [gmp_printf cannot read long double])]) MPFR_FUNC_GMP_PRINTF_SPEC([td], [ptrdiff_t], [ @@ -1070,6 +1071,7 @@ MPFR_FUNC_GMP_PRINTF_SPEC([td], [ptrdiff_t], [ #include <stddef.h> #endif #include <gmp.h> - ],, + ], + [AC_DEFINE([PRINTF_T], 1, [gmp_printf can read ptrdiff_t])], [AC_DEFINE([NPRINTF_T], 1, [gmp_printf cannot read ptrdiff_t])]) ]) |