diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-01-10 16:24:30 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2020-01-10 16:24:30 +0000 |
commit | 6ab3027b2c8e15faf67523e949038bafc4de5d6b (patch) | |
tree | 311b537b1d8e7dc4e45d73eaa76506cff953630a /tests/tprintf.c | |
parent | 3b2c9e841cb6d270c4eeffd994a18ef1d6fe3833 (diff) | |
download | mpfr-6ab3027b2c8e15faf67523e949038bafc4de5d6b.tar.gz |
[tests/{tfprintf.c,tprintf.c}] Updated an error message about MinGW,
now output only if MinGW is used.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13671 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tprintf.c')
-rw-r--r-- | tests/tprintf.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/tprintf.c b/tests/tprintf.c index 5b6c73b6d..cf96258c1 100644 --- a/tests/tprintf.c +++ b/tests/tprintf.c @@ -333,9 +333,11 @@ check_mixed (void) if (p != 20) { mpfr_fprintf (stderr, "Error in test 8, got '%% a. %RNg, b. %Qx, c. %td'\n", mpfr, mpq, saved_p); - /* under MinGW, -D__USE_MINGW_ANSI_STDIO is required to support %td - see https://gcc.gnu.org/ml/gcc/2013-03/msg00103.html */ - fprintf (stderr, "Under MinGW, compiling GMP with -D__USE_MINGW_ANSI_STDIO might be required\n"); +#if defined(__MINGW32__) || defined(__MINGW64__) + fprintf (stderr, + "Your MinGW may be too old, in which case compiling GMP\n" + "with -D__USE_MINGW_ANSI_STDIO might be required.\n"); +#endif } check_length (8, (long) p, 20, ld); /* no format specifier '%td' in C89 */ #endif |