Skip to content

Commit 8b57723

Browse files
committed
Fix compilation error when MSVC is not set to C11 standard
1 parent 6c3f6fd commit 8b57723

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/shared/platform/include/platform_wasi_types.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
#endif /* _Alignof */
3030

3131
extern "C" {
32+
#elif defined(_MSC_VER) && !_CRT_HAS_C11
33+
#define _Static_assert static_assert
34+
#define _Alignof __alignof
3235
#endif
3336

3437
/* There is no need to check the WASI layout if we're using uvwasi or libc-wasi

0 commit comments

Comments
 (0)