Skip to content

Commit b655f88

Browse files
committed
Fix preprocessor directive placement for Windows compatibility in aot_reloc_x86_32.c
1 parent 1672518 commit b655f88

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

core/iwasm/aot/arch/aot_reloc_x86_32.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ static uint64 __stdcall __umoddi3(uint64 a, uint64 b)
4949
{
5050
return a % b;
5151
}
52-
#endif
5352

5453
static uint64 __stdcall __aulldiv(uint64 a, uint64 b)
5554
{
@@ -63,6 +62,7 @@ static int64 __stdcall __allrem(int64 a, int64 b)
6362
{
6463
return a % b;
6564
}
65+
#endif /* !defined(_WIN32) && !defined(_WIN32_) */
6666

6767
/* clang-format off */
6868
static SymbolMap target_sym_map[] = {
@@ -72,9 +72,11 @@ static SymbolMap target_sym_map[] = {
7272
REG_SYM(__udivdi3),
7373
REG_SYM(__moddi3),
7474
REG_SYM(__umoddi3),
75+
#if defined(_WIN32) || defined(_WIN32_)
7576
REG_SYM(__aulldiv),
7677
REG_SYM(__alldiv),
7778
REG_SYM(__allrem)
79+
#endif /* defined(_WIN32) || defined(_WIN32_) */
7880
};
7981
/* clang-format on */
8082

0 commit comments

Comments
 (0)