From 3a8368f60cd44692281afb725213778aa27d88c2 Mon Sep 17 00:00:00 2001 From: vlefevre Date: Tue, 25 Aug 2015 17:22:30 +0000 Subject: [tests/tstdint.c] Support MPFR_PRINTF_MAXLM. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9663 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/tstdint.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/tstdint.c b/tests/tstdint.c index 4ef16de40..3773b0202 100644 --- a/tests/tstdint.c +++ b/tests/tstdint.c @@ -53,7 +53,11 @@ main (void) mpfr_clear (x); if (j != 1) { - printf ("Error: got %jd instead of 1.\n", j); +#ifdef MPFR_PRINTF_MAXLM + printf ("Error: got %" MPFR_PRINTF_MAXLM "d instead of 1.\n", j); +#else + printf ("Error: did not get 1.\n"); +#endif exit (1); } -- cgit v1.2.1