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