Add WebAssembly support.

This commit is contained in:
Catherine 2023-12-22 21:07:33 +00:00
parent bca3bd6623
commit 8c6c0ee85a
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ bool Gowin::send_command(uint8_t cmd)
#include <libkern/OSByteOrder.h>
#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 <stdlib.h>