From 06537fda832d02afed750a4b574fa5aa656ef6ed Mon Sep 17 00:00:00 2001 From: Haoxiang Fei Date: Fri, 16 May 2025 16:39:10 +0800 Subject: [PATCH] fix: wasi has endian.h --- lib/src/portable/endian.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/portable/endian.h b/lib/src/portable/endian.h index 47e315f4..f467ec53 100644 --- a/lib/src/portable/endian.h +++ b/lib/src/portable/endian.h @@ -23,7 +23,8 @@ defined(__OpenBSD__) || \ defined(__CYGWIN__) || \ defined(__MSYS__) || \ - defined(__EMSCRIPTEN__) + defined(__EMSCRIPTEN__) || \ + defined(__wasi__) #if defined(__NetBSD__) #define _NETBSD_SOURCE 1