From aa944f4ef6a3ceaaf8b6068727d93898860e01f1 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Wed, 4 Jul 2012 00:00:24 +0900 Subject: [PATCH] Guarded include of stdint.h and inttypes.h --- src/common.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/common.h b/src/common.h index e107efc8..86db14d4 100644 --- a/src/common.h +++ b/src/common.h @@ -78,9 +78,14 @@ // use C99 limit macros #define __STDC_LIMIT_MACROS // included here for compatibility issues with old compiler/libraries. -#include +#ifdef HAVE_STDINT_H +# include +#endif // HAVE_STDINT_H + // For PRId64 #define __STDC_FORMAT_MACROS -#include +#ifdef HAVE_INTTYPES_H +# include +#endif // HAVE_INTTYPES_H #endif // D_COMMON_H