We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b57723 commit bd15116Copy full SHA for bd15116
core/shared/platform/include/platform_wasi_types.h
@@ -20,19 +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
-#define _Alignof alignof
-#endif /* _Alignof */
-
31
-extern "C" {
32
-#elif defined(_MSC_VER) && !_CRT_HAS_C11
33
-#define _Static_assert static_assert
+#if defined(_MSC_VER) && !_CRT_HAS_C11
34
#define _Alignof __alignof
+#else
+#define _Alignof alignof
35
#endif
36
+#endif /* _Alignof */
37
38
/* There is no need to check the WASI layout if we're using uvwasi or libc-wasi
39
* is not enabled at all. */
0 commit comments