From 8c6c0ee85af7dfb5d672b79901f92c582879f8a0 Mon Sep 17 00:00:00 2001 From: Catherine Date: Fri, 22 Dec 2023 21:07:33 +0000 Subject: [PATCH] Add WebAssembly support. --- src/gowin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gowin.cpp b/src/gowin.cpp index 3d064d6..600727d 100644 --- a/src/gowin.cpp +++ b/src/gowin.cpp @@ -231,7 +231,7 @@ bool Gowin::send_command(uint8_t cmd) #include #define le32toh(x) OSSwapLittleToHostInt32(x) #define htole32(x) OSSwapHostToLittleInt32(x) -#elif (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) || defined(__WINDOWS__) +#elif (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) || defined(__WINDOWS__) || defined(__wasm__) #if BYTE_ORDER == LITTLE_ENDIAN #if defined(_MSC_VER) #include