From af7de4972b154a2757dc98e32d2327bf5dbae49c Mon Sep 17 00:00:00 2001 From: Andrey Filipenkov Date: Sun, 22 Dec 2024 11:00:37 +0300 Subject: [PATCH] fix building for 32-bit Android with API level < 24 --- src/stream.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/stream.c b/src/stream.c index 6559e1d..6d64c79 100644 --- a/src/stream.c +++ b/src/stream.c @@ -28,6 +28,11 @@ # include #endif +#if defined(__ANDROID_API__) && (__ANDROID_API__ < 24) && (defined __arm__ || defined __i386__) +# define fseeko fseek +# define ftello ftell +#endif + typedef struct OpusMemStream OpusMemStream; #define OP_MEM_SIZE_MAX (~(size_t)0>>1)