Skip to content

Commit 2a337c4

Browse files
authored
Fix compilation error when MSVC is not set to C11 standard (#4588)
* Fix compilation error when MSVC is not set to C11 standard
1 parent c69c7e2 commit 2a337c4

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)