mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 10:05:05 -07:00
Force LITTLE_ENDIAN detection on x86 and x86_64
This is a sad workaround for CompCert 2.6
This commit is contained in:
parent
7bb9b7fc70
commit
f4cc8aeb48
@ -404,6 +404,10 @@ AC_CHECK_HEADERS([sys/mman.h])
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
|
||||
AC_C_INLINE
|
||||
AS_CASE([$host_cpu],
|
||||
[i*86 | x86_64],
|
||||
[ac_cv_c_bigendian=no]
|
||||
)
|
||||
AC_C_BIGENDIAN(
|
||||
AC_DEFINE(NATIVE_BIG_ENDIAN, 1, [machine is bigendian]),
|
||||
AC_DEFINE(NATIVE_LITTLE_ENDIAN, 1, [machine is littleendian]),
|
||||
|
Loading…
Reference in New Issue
Block a user