Skip to content

Commit 430cc5e

Browse files
authored
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
1 parent cb233ec commit 430cc5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/iwasm/compilation/aot_emit_aot_file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ typedef struct AOTSymbolList {
4848
} AOTSymbolList;
4949

5050
/* AOT object data */
51-
typedef struct AOTObjectData {
51+
struct AOTObjectData {
5252
AOTCompContext *comp_ctx;
5353

5454
LLVMMemoryBufferRef mem_buf;
@@ -82,7 +82,7 @@ typedef struct AOTObjectData {
8282
const char *stack_sizes_section_name;
8383
uint32 stack_sizes_offset;
8484
uint32 *stack_sizes;
85-
} AOTObjectData;
85+
};
8686

8787
#if 0
8888
static void dump_buf(uint8 *buf, uint32 size, char *title)

0 commit comments

Comments
 (0)