Skip to content

Commit c4374f3

Browse files
committed
Revert "optimize"
This reverts commit bd15116.
1 parent bd15116 commit c4374f3

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

core/shared/platform/include/platform_wasi_types.h

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,20 @@
2020
/* clang-format off */
2121

2222
#ifdef __cplusplus
23-
extern "C" {
24-
#endif
25-
2623
#ifndef _Static_assert
2724
#define _Static_assert static_assert
2825
#endif /* _Static_assert */
2926

3027
#ifndef _Alignof
31-
#if defined(_MSC_VER) && !_CRT_HAS_C11
32-
#define _Alignof __alignof
33-
#else
3428
#define _Alignof alignof
35-
#endif
3629
#endif /* _Alignof */
3730

31+
extern "C" {
32+
#elif defined(_MSC_VER) && !_CRT_HAS_C11
33+
#define _Static_assert static_assert
34+
#define _Alignof __alignof
35+
#endif
36+
3837
/* There is no need to check the WASI layout if we're using uvwasi or libc-wasi
3938
* is not enabled at all. */
4039
#if WASM_ENABLE_UVWASI != 0 || WASM_ENABLE_LIBC_WASI == 0

0 commit comments

Comments
 (0)