]> 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)
committerMartin Matuska <martin@matuska.de>
Tue, 11 Mar 2025 09:30:18 +0000 (10:30 +0100)
commit53445a6205a9bf2253e3853d61c77de0221a92b4
tree6e3cd6e51a43a1346ab84cee7656051d9dc8b869
parent3971e6dfcfb70ab1b36c0114072cbcc92ad34a7e
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.

(cherry picked from commit 561b6430fd558af6e15b3cbe4258e0b30945b411)
libarchive/archive_string.c