diff options
| author | Anup Patel <[email protected]> | 2019-01-18 10:28:58 +0530 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2019-01-18 10:47:30 +0530 |
| commit | ebfe23125666a11fd3dc14b85f5ca58b7f40276b (patch) | |
| tree | eacf671042d394bcb6e615cc9c7278c1349153b3 /platform/common/tinyfdt.c | |
| parent | e0686ca844f6c7372edd353cffe08ddee5dcf5c9 (diff) | |
platform: Fix compile error caused by standard includes
Avoid using standard includes namely stdint.h, string.h, stdlib.h, etc.
All standard include except stddef.h give compilation error due
to differences in RISC-V toolchain configuration. Typically, the
compilation error is related to "gnu-stubs-lp64.h".
This patch fixes compile error caused by standard includes by
providing substitutes of definetions provided by standard includes
wherever required.
Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'platform/common/tinyfdt.c')
| -rw-r--r-- | platform/common/tinyfdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/common/tinyfdt.c b/platform/common/tinyfdt.c index a3c1fcf0..c3bf2100 100644 --- a/platform/common/tinyfdt.c +++ b/platform/common/tinyfdt.c @@ -7,8 +7,8 @@ * SPDX-License-Identifier: BSD-2-Clause */ +#include <plat/string.h> #include <plat/tinyfdt.h> -#include <string.h> #define FDT_MAGIC 0xd00dfeed #define FDT_VERSION 17 |
