Mercurial > repos > blastem
diff util.h @ 2681:c4256ce2c45a
Updated Android port using gradle toolchain and with basic Storage Access Framework support for Android 11+ support
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 26 Mar 2025 01:20:55 -0700 |
parents | 794ba17f0716 |
children | 143cb5762ec9 |
line wrap: on
line diff
--- a/util.h Wed Mar 26 01:20:09 2025 -0700 +++ b/util.h Wed Mar 26 01:20:55 2025 -0700 @@ -106,5 +106,12 @@ int socket_last_error(void); //Returns if the last socket error was EAGAIN/EWOULDBLOCK int socket_error_is_wouldblock(void); +#if defined(__ANDROID__) && !defined(IS_LIB) +FILE* fopen_wrapper(const char *path, const char *mode); +#ifndef DISABLE_ZLIB +#include "zlib/zlib.h" +gzFile gzopen_wrapper(const char *path, const char *mode); +#endif +#endif #endif //UTIL_H_