mirror of
https://github.com/logos-storage/nim-bearssl.git
synced 2026-01-03 22:13:09 +00:00
Fix BR_UNALIGNED define for ARM architectures. (#11)
* Fix BR_UNALIGNED define for ARM architectures.
This commit is contained in:
parent
33b2303fc3
commit
ba5f468798
@ -42,9 +42,11 @@ else:
|
||||
{.passC: "-DBR_USE_UNIX_TIME=1".}
|
||||
{.passC: "-DBR_USE_URANDOM=1".}
|
||||
|
||||
when system.cpuEndian == bigEndian:
|
||||
when defined(i386) or defined(amd64) or defined(arm64):
|
||||
{.passC: "-DBR_LE_UNALIGNED=1".}
|
||||
elif defined(powerpc) or defined(powerpc64):
|
||||
{.passC: "-DBR_BE_UNALIGNED=1".}
|
||||
else:
|
||||
elif defined(powerpc64el):
|
||||
{.passC: "-DBR_LE_UNALIGNED=1".}
|
||||
|
||||
when sizeof(int) == 8:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user