From 430cc5e5efd7a1d7191e6cab78f42455f6cd4df5 Mon Sep 17 00:00:00 2001 From: "liang.he" Date: Tue, 1 Jul 2025 10:10:11 +0800 Subject: [PATCH] Refactor AOTObjectData definition to use a forward declaration (#4428) > core/iwasm/compilation/aot_emit_aot_file.c:85:3: error: redefinition of typedef 'AOTObjectData' is a C11 feature --- core/iwasm/compilation/aot_emit_aot_file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/iwasm/compilation/aot_emit_aot_file.c b/core/iwasm/compilation/aot_emit_aot_file.c index b41399acb..a1c47bfac 100644 --- a/core/iwasm/compilation/aot_emit_aot_file.c +++ b/core/iwasm/compilation/aot_emit_aot_file.c @@ -48,7 +48,7 @@ typedef struct AOTSymbolList { } AOTSymbolList; /* AOT object data */ -typedef struct AOTObjectData { +struct AOTObjectData { AOTCompContext *comp_ctx; LLVMMemoryBufferRef mem_buf; @@ -82,7 +82,7 @@ typedef struct AOTObjectData { const char *stack_sizes_section_name; uint32 stack_sizes_offset; uint32 *stack_sizes; -} AOTObjectData; +}; #if 0 static void dump_buf(uint8 *buf, uint32 size, char *title)