Fix BR_UNALIGNED define for ARM architectures. (#11)

* Fix BR_UNALIGNED define for ARM architectures.
This commit is contained in:
Eugene Kabanov 2020-07-28 03:09:59 +03:00 committed by GitHub
parent 33b2303fc3
commit ba5f468798
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

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