]> git.notmuchmail.org Git - notmuch/commit
util: detect byte order
authorDavid Bremner <david@tethera.net>
Tue, 26 Nov 2013 02:55:24 +0000 (22:55 -0400)
committerDavid Bremner <david@tethera.net>
Wed, 27 Nov 2013 11:43:29 +0000 (07:43 -0400)
commitb9f0e6923d645a044f837d61a9343ea16d56504e
treee87b30e7f490038ce9db6768fe7e1b02e4d98de6
parent7f07bfd6d0189afcd9d260f6f560056dd3476f66
util: detect byte order

Unfortunately old versions of GCC and clang do not provide byte order
macros, so we re-invent them.

If UTIL_BYTE_ORDER is not defined or defined to 0, we fall back to
macros supported by recent versions of GCC and clang
configure
lib/libsha1.c
util/endian-util.h [new file with mode: 0644]