From d991edf0747095a8726ba09686d06cdba3ba43fa Mon Sep 17 00:00:00 2001 From: Alex Aron <116617272+Alex-Aron@users.noreply.github.com> Date: Mon, 14 Jul 2025 11:47:40 -0400 Subject: [PATCH] fix(lib): add wasm32 support to portable/endian.h (#4607) (cherry picked from commit aeab7550337212c3a45dfb30f263d6688dfeb99b) --- 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 f467ec53..cfbae6aa 100644 --- a/lib/src/portable/endian.h +++ b/lib/src/portable/endian.h @@ -24,7 +24,8 @@ defined(__CYGWIN__) || \ defined(__MSYS__) || \ defined(__EMSCRIPTEN__) || \ - defined(__wasi__) + defined(__wasi__) || \ + defined(__wasm__) #if defined(__NetBSD__) #define _NETBSD_SOURCE 1