We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd15116 commit c4374f3Copy full SHA for c4374f3
1 file changed
core/shared/platform/include/platform_wasi_types.h
@@ -20,21 +20,20 @@
20
/* clang-format off */
21
22
#ifdef __cplusplus
23
-extern "C" {
24
-#endif
25
-
26
#ifndef _Static_assert
27
#define _Static_assert static_assert
28
#endif /* _Static_assert */
29
30
#ifndef _Alignof
31
-#if defined(_MSC_VER) && !_CRT_HAS_C11
32
-#define _Alignof __alignof
33
-#else
34
#define _Alignof alignof
35
36
#endif /* _Alignof */
37
+extern "C" {
+#elif defined(_MSC_VER) && !_CRT_HAS_C11
+#define _Static_assert static_assert
+#define _Alignof __alignof
+#endif
+
38
/* There is no need to check the WASI layout if we're using uvwasi or libc-wasi
39
* is not enabled at all. */
40
#if WASM_ENABLE_UVWASI != 0 || WASM_ENABLE_LIBC_WASI == 0
0 commit comments