We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc95fc5 commit 67012b6Copy full SHA for 67012b6
src/boot_riscv.c
@@ -273,7 +273,7 @@ void do_boot(const uint32_t *app_offset)
273
unsigned long dts_addr;
274
hal_dts_fixup((uint32_t*)dts_offset);
275
dts_addr = (unsigned long)dts_offset;
276
-#else
+#elif defined(WOLFBOOT_RISCV_MMODE) || __riscv_xlen == 64
277
unsigned long dts_addr = 0;
278
#endif
279
src/string.c
@@ -30,7 +30,7 @@
30
#if defined(_RENESAS_RA_)
31
#include <stdint.h>
32
33
-#ifndef TARGET_library
+#if !defined(TARGET_library) && defined(__STDC_HOSTED__) && __STDC_HOSTED__
34
#include <string.h>
35
#else
36
size_t strlen(const char *s); /* forward declaration */
0 commit comments