From f7271cfe4fab159f731682bec2b7557f6de4daa9 Mon Sep 17 00:00:00 2001 From: anutosh491 Date: Wed, 28 May 2025 12:03:34 +0530 Subject: [PATCH] Fix: Include in wasi/api.h to define _Noreturn in C++ mode --- system/include/wasi/api.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/system/include/wasi/api.h b/system/include/wasi/api.h index f3bb425f6c41a..064bf4fb00cb5 100644 --- a/system/include/wasi/api.h +++ b/system/include/wasi/api.h @@ -47,6 +47,8 @@ _Static_assert(_Alignof(void*) == 4, "non-wasi data layout"); extern "C" { #endif +#include + // TODO: Encoding this in witx. #define __WASI_DIRCOOKIE_START (UINT64_C(0)) typedef __SIZE_TYPE__ __wasi_size_t;