mirror of
https://github.com/taigrr/arduinolibs
synced 2025-01-18 04:33:12 -08:00
Compiling the Crypto library on a host system
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
#if !defined(HOST_BUILD)
|
||||
|
||||
// CPU is assumed to be little endian. Edit this file if you
|
||||
// need to port this library to a big endian CPU.
|
||||
|
||||
@@ -63,4 +65,13 @@
|
||||
}))
|
||||
#define be64toh(x) (htobe64((x)))
|
||||
|
||||
#else // HOST_BUILD
|
||||
|
||||
#include <endian.h>
|
||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
||||
#define CRYPTO_LITTLE_ENDIAN 1
|
||||
#endif
|
||||
|
||||
#endif // HOST_BUILD
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user