From 9977bb5b77eacab80c646d7f970d6a194abbc536 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Mon, 22 Apr 2024 12:01:02 +0200 Subject: [PATCH] include/share/compat.h : use fseek if fseeko is not available --- include/share/compat.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/share/compat.h b/include/share/compat.h index 6ce23a5c..f4687024 100644 --- a/include/share/compat.h +++ b/include/share/compat.h @@ -63,9 +63,16 @@ #endif #endif #else +#ifndef HAVE_FSEEKO +#define fseeko fseek +#define ftello ftell +#define FLAC__off_t long +#define FLAC__OFF_T_MAX LONG_MAX +#else #define FLAC__off_t off_t #define FLAC__OFF_T_MAX OFF_T_MAX #endif +#endif