Better fseeko detection.

This commit is contained in:
Nathan Moinvaziri 2018-11-19 19:52:47 -08:00
parent 2d37e12f36
commit 82fa1b39c0

View File

@ -27,14 +27,19 @@
/***************************************************************************/
#define fopen64 fopen
#if !define(MZ_FILE32_API) && !defined(NO_FSEEKO)
# define ftello64 ftello
# define fseeko64 fseeko
#elif !defined(MZ_FILE32_API) && (_MSC_VER >= 1400)
# define ftello64 _ftelli64
# define fseeko64 _fseeki64
#else
#ifndef MZ_FILE32_API
# ifndef NO_FSEEKO
# define ftello64 ftello
# define fseeko64 fseeko
# elif defined(_MSC_VER) && (_MSC_VER >= 1400)
# define ftello64 _ftelli64
# define fseeko64 _fseeki64
# endif
#endif
#ifndef ftello64
# define ftello64 ftell
#endif
#ifndef fseeko64
# define fseeko64 fseek
#endif