From d68e676cacdcd346f0555c80a3389f50079d2e4f Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Tue, 9 Apr 2013 23:10:16 +0200 Subject: lib/replace: prefer inttypes.h over stdint.h according to C99 7.8, inttypes.h should include stdint.h so prefer inttypes.h and fall back to stdint.h (and our own definitions of PRI*) only when inttypes.h could not be found Signed-off-by: Christian Ambach Reviewed-by: Michael Adam --- lib/replace/replace.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/replace') diff --git a/lib/replace/replace.h b/lib/replace/replace.h index 9774da4673..2262a8bd38 100644 --- a/lib/replace/replace.h +++ b/lib/replace/replace.h @@ -46,14 +46,14 @@ #endif -#ifdef HAVE_STDINT_H +#ifdef HAVE_INTTYPES_H +#define __STDC_FORMAT_MACROS +#include +#elif HAVE_STDINT_H #include /* force off HAVE_INTTYPES_H so that roken doesn't try to include both, which causes a warning storm on irix */ #undef HAVE_INTTYPES_H -#elif HAVE_INTTYPES_H -#define __STDC_FORMAT_MACROS -#include #endif #ifdef HAVE_MALLOC_H -- cgit