Resolve conflict with the compiler's stdlib
The custom __init definition in cdefs.h caused a collision with the
definition from the compiler's standard library. The custom definition
has been removed from cdefs.h.
Change-Id: I92fc83228ca97473fd7be159e16e59ab144dad4f
Signed-off-by: Imre Kis <imre.kis@arm.com>
diff --git a/mocks/include/lib/libc/cdefs.h b/mocks/include/lib/libc/cdefs.h
index 0d00722..c79a23b 100644
--- a/mocks/include/lib/libc/cdefs.h
+++ b/mocks/include/lib/libc/cdefs.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2018-2020, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -14,15 +14,8 @@
#define __unused __attribute__((__unused__))
#define __aligned(x) __attribute__((__aligned__(x)))
#define __section(x) __attribute__((__section__(x)))
-#if RECLAIM_INIT_CODE
-/*
- * Add each function to a section that is unique so the functions can still
- * be garbage collected
- */
-#define __init __section(".text.init." __FILE__ "." __XSTRING(__LINE__))
-#else
-#define __init
-#endif
+
+/* __init definition was removed because of collision with compiler's stdlib */
#define __printflike(fmtarg, firstvararg) \
__attribute__((__format__ (__printf__, fmtarg, firstvararg)))