byteorder: Provide a fallback for le32toh/htole32()
authorMartin Willi <martin@strongswan.org>
Tue, 10 Nov 2015 07:12:35 +0000 (08:12 +0100)
committerMartin Willi <martin@strongswan.org>
Fri, 4 Dec 2015 09:29:09 +0000 (10:29 +0100)
commit057e6cc52466327dba7b9e21a472ef9f4028f118
treee3e1948688aaf7aa78c36709efb5a46d274ea2fb
parent8fa0c7bc77203f5aa8a4e9507b11a55e34200684
byteorder: Provide a fallback for le32toh/htole32()

Some older toolchains don't provide these macros, so implement them using
the gcc builtins. We also provide 64-bit variants as used by chapoly.
src/libstrongswan/utils/utils/byteorder.h