]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Prefer build-time endianness detection (#2464)
authorMostyn Bramley-Moore <mostyn@antipode.se>
Mon, 30 Dec 2024 02:10:23 +0000 (03:10 +0100)
committerGitHub <noreply@github.com>
Mon, 30 Dec 2024 02:10:23 +0000 (18:10 -0800)
commit561b6430fd558af6e15b3cbe4258e0b30945b411
tree53df5330ff901de4678f228c1b40ec8c5a406720
parent4ce9c2f4bedfef8e4c5962c4d0f59bc400e2a976
Prefer build-time endianness detection (#2464)

Endianness is easy to determine at runtime, but detecting this a single
time and then reusing the cached result might require API changes.

However we can use compile-time detection for some known compiler macros
without API changes fairly easily. Let's start by enabling this for
Clang and GCC.
libarchive/archive_string.c