1
0
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:
Rhys Weatherley
2016-03-17 19:19:14 +10:00
parent 8cd6916fe8
commit 72715b172b
15 changed files with 598 additions and 13 deletions

View File

@@ -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