From 84377edc1fa9f1c70261adfc2a4c90c726632f60 Mon Sep 17 00:00:00 2001 From: Jason Feng Date: Tue, 12 Sep 2023 13:46:48 -0400 Subject: [PATCH] Add DDR dummy header size_t strlen(const char *str) Fix DDR compilation error: "../oti/VMHelpers.hpp", error: identifier "strlen" is undefined. Signed-off-by: Jason Feng --- runtime/ddr/dummy_headers/string.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/runtime/ddr/dummy_headers/string.h b/runtime/ddr/dummy_headers/string.h index b899a8a78bb..a1fec13969e 100644 --- a/runtime/ddr/dummy_headers/string.h +++ b/runtime/ddr/dummy_headers/string.h @@ -20,6 +20,5 @@ * SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0-only WITH Classpath-exception-2.0 OR GPL-2.0-only WITH OpenJDK-assembly-exception-1.0 *******************************************************************************/ - -void * memmove ( void * destination, const void * source, size_t num ); - +void *memmove(void *destination, const void *source, size_t num); +size_t strlen(const char *str);