diff options
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 |