From 4166ecb247a1ec9f906313428e8b9059c9f2b619 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 15 Oct 2014 04:38:31 -0600 Subject: Add some standard headers external code might need inttypes.h defines format specifiers for printf which work with data types of particular sizes. stdlib.h is currently just a passthrough to malloc.h which has declarations of the various *alloc functions. Add the required #define to common.h so that these printf format specifiers will be made available. Signed-off-by: Gabe Black Reviewed-by: Gabe Black Tested-by: Gabe Black Reviewed-by: Bill Richardson Signed-off-by: Simon Glass (Replaced with a GPL version from glibc) --- include/common.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/common.h') diff --git a/include/common.h b/include/common.h index a5764d8..1082c09 100644 --- a/include/common.h +++ b/include/common.h @@ -83,6 +83,9 @@ typedef volatile unsigned char vu_char; #include #include +/* Bring in printf format macros if inttypes.h is included */ +#define __STDC_FORMAT_MACROS + #ifdef __LP64__ #define CONFIG_SYS_SUPPORT_64BIT_DATA #endif -- cgit v1.1