Add WebAssembly support.
This commit is contained in:
parent
bca3bd6623
commit
8c6c0ee85a
|
|
@ -231,7 +231,7 @@ bool Gowin::send_command(uint8_t cmd)
|
||||||
#include <libkern/OSByteOrder.h>
|
#include <libkern/OSByteOrder.h>
|
||||||
#define le32toh(x) OSSwapLittleToHostInt32(x)
|
#define le32toh(x) OSSwapLittleToHostInt32(x)
|
||||||
#define htole32(x) OSSwapHostToLittleInt32(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 BYTE_ORDER == LITTLE_ENDIAN
|
||||||
#if defined(_MSC_VER)
|
#if defined(_MSC_VER)
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue