Don't include endian.h unconditionally (#302)

The branch for gcc < 4.8 includes endian.h unconditionally. Unfortunately endian.h is non-standard and is limited to linux according to the docs.
This breaks compilation for OSX PPC
opam-2.0.0
Vladimir Serbinenko 3 years ago committed by GitHub
parent 4436c7c525
commit 0009146177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -231,7 +231,9 @@
# define m3_bswap32(x) __builtin_bswap32((x))
# define m3_bswap64(x) __builtin_bswap64((x))
# else
# include <endian.h>
# ifdef __linux__
# include <endian.h>
# endif
# if defined(__bswap_16)
# define m3_bswap16(x) __bswap_16((x))
# define m3_bswap32(x) __bswap_32((x))

Loading…
Cancel
Save