fix(lib): add wasm32 support to portable/endian.h (#4607)

(cherry picked from commit aeab755033)
This commit is contained in:
Alex Aron 2025-07-14 11:47:40 -04:00 committed by Christian Clason
parent f2f197b6b2
commit d991edf074

View file

@ -24,7 +24,8 @@
defined(__CYGWIN__) || \
defined(__MSYS__) || \
defined(__EMSCRIPTEN__) || \
defined(__wasi__)
defined(__wasi__) || \
defined(__wasm__)
#if defined(__NetBSD__)
#define _NETBSD_SOURCE 1