OpenMiInk/third_party/krita-deps-management/ext_flac/0001-Revert-CMake-disable-fseeko-on-32-bit-Android-before.patch
Hellings b8c8ff98e2 Hi
2026-10-16 09:05:56 -04:00

35 lines
1.3 KiB
Diff

From 99ac2071d3ad50474afd97969404abfe6ed50529 Mon Sep 17 00:00:00 2001
From: Luna Lovecraft <ciubix8514@gmail.com>
Date: Fri, 5 Jun 2026 20:17:02 +0400
Subject: [PATCH] Revert "[CMake] disable fseeko on 32-bit Android before API
24"
This reverts commit 49ab34dfefec4e964e7e32164be6c6acee0c51ab.
---
CMakeLists.txt | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9396130d..c38b1467 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -121,15 +121,7 @@ else()
check_include_file("x86intrin.h" FLAC__HAS_X86INTRIN)
endif()
-
-if(ANDROID AND CMAKE_SYSTEM_VERSION VERSION_LESS 24 AND (CMAKE_SYSTEM_PROCESSOR MATCHES "i686" OR CMAKE_SYSTEM_PROCESSOR MATCHES "armv7-a"))
- # fseeko/ftello may link, but it's not usable before Android API 24 on 32-bit Android
- # https://android.googlesource.com/platform/bionic/+/main/docs/32-bit-abi.md
- message(STATUS "Disabling fseeko/ftello for 32-bit Android before API 24")
- set(HAVE_FSEEKO 0 CACHE INTERNAL "")
-else()
- check_function_exists(fseeko HAVE_FSEEKO)
-endif()
+check_function_exists(fseeko HAVE_FSEEKO)
check_c_source_compiles("int main() { return __builtin_bswap16 (0) ; }" HAVE_BSWAP16)
check_c_source_compiles("int main() { return __builtin_bswap32 (0) ; }" HAVE_BSWAP32)
--
2.54.0