From 957514d4f73cc05bc222ceb18de24c5d9bb16623 Mon Sep 17 00:00:00 2001 From: Antonio Nino Diaz Date: Thu, 15 Nov 2018 12:01:15 +0000 Subject: stdlib: Increase compatibility with TF-A Code that originates from the Trusted Firmware-A project expects the stdlib headers to work in a specific way and to have some specific defines. Specifically, TF-A doesn't have the non-standard types.h header, and it has all the definitions in stdint.h. Also, the __init define is missing. No component of this repository needs this option, but having the define in cdefs.h allows code sharing between both projects. Change-Id: Ic298fd87a6c2cf8a9e5b8a18fc274d4150ed0a13 Signed-off-by: Antonio Nino Diaz --- include/lib/stdlib/sys/cdefs.h | 3 +++ include/lib/stdlib/sys/stdint.h | 1 + 2 files changed, 4 insertions(+) (limited to 'include') diff --git a/include/lib/stdlib/sys/cdefs.h b/include/lib/stdlib/sys/cdefs.h index 16fb151..27f73fc 100644 --- a/include/lib/stdlib/sys/cdefs.h +++ b/include/lib/stdlib/sys/cdefs.h @@ -36,6 +36,9 @@ #ifndef _SYS_CDEFS_H_ #define _SYS_CDEFS_H_ +/* Defined here for compatibility with the Trusted Firmware source code */ +#define __init + #if defined(__cplusplus) #define __BEGIN_DECLS extern "C" { #define __END_DECLS } diff --git a/include/lib/stdlib/sys/stdint.h b/include/lib/stdlib/sys/stdint.h index aa5ac81..fb6e35a 100644 --- a/include/lib/stdlib/sys/stdint.h +++ b/include/lib/stdlib/sys/stdint.h @@ -31,6 +31,7 @@ #include #include +#include #include #include -- cgit v1.2.3