libc: Cleanup SCC headers
Only leave the parts relevant to the Trusted Firmware.
Change-Id: I0444c16e402f6c1629211d03bf6cb32ca3dbcf59
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
diff --git a/include/lib/libc/stddef.h b/include/lib/libc/stddef.h
index da884b3..c9957bd 100644
--- a/include/lib/libc/stddef.h
+++ b/include/lib/libc/stddef.h
@@ -8,8 +8,8 @@
* All rights reserved.
*/
-#ifndef _STDDEF_H
-#define _STDDEF_H
+#ifndef STDDEF_H
+#define STDDEF_H
#include <stddef_.h>
@@ -17,6 +17,6 @@
#define NULL ((void *) 0)
#endif
-#define offsetof(st, m) ((size_t)&(((st *)0)->m))
+#define offsetof(st, m) __builtin_offsetof(st, m)
-#endif
+#endif /* STDDEF_H */