diff options
author | thevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-01-15 13:17:14 +0000 |
---|---|---|
committer | thevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-01-15 13:17:14 +0000 |
commit | 7b164e5507962d202353203e29f9da26f88815e5 (patch) | |
tree | ec704d9b4c7b90d8bc47f67897600fe2d48db8bb /tests/tprintf.c | |
parent | 1991219bc75afbeeaa0c96e559f7e973eaca07c0 (diff) | |
download | mpfr-7b164e5507962d202353203e29f9da26f88815e5.tar.gz |
tfprintf.c tprintf.c: Fix included headers, type intmax_t may be defined in inttypes.h or in stdint.h (see autoconf manual 5.6.1 Portability of Headers).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5822 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tprintf.c')
-rw-r--r-- | tests/tprintf.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/tprintf.c b/tests/tprintf.c index f73ffaef4..211a8f146 100644 --- a/tests/tprintf.c +++ b/tests/tprintf.c @@ -25,8 +25,12 @@ MA 02110-1301, USA. */ #include <stdlib.h> #include <stddef.h> -#ifdef HAVE_STDINT_H -#include <stdint.h> +#if HAVE_INTTYPES_H +# include <inttypes.h> /* for intmax_t */ +#else +# if HAVE_STDINT_H +# include <stdint.h> +# endif #endif #ifdef HAVE_QUAD_T |