mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
use 64-bit ftell on Windows where available
This commit is contained in:
parent
b5d2782833
commit
40e9416c6c
@ -75,6 +75,12 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_WIN32) && !defined(_XBOX)
|
||||||
|
#if defined(_MSC_VER) && _MSC_VER >= 1400
|
||||||
|
#define ATLEAST_VC2005
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef RARCH_INTERNAL
|
#ifdef RARCH_INTERNAL
|
||||||
#ifndef VFS_FRONTEND
|
#ifndef VFS_FRONTEND
|
||||||
#define VFS_FRONTEND
|
#define VFS_FRONTEND
|
||||||
@ -373,7 +379,12 @@ int64_t retro_vfs_file_tell_impl(libretro_vfs_implementation_file *stream)
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if ((stream->hints & RFILE_HINT_UNBUFFERED) == 0)
|
if ((stream->hints & RFILE_HINT_UNBUFFERED) == 0)
|
||||||
|
/* VC2005 and up have a special 64-bit ftell */
|
||||||
|
#ifdef ATLEAST_VC2005
|
||||||
|
return _ftelli64(stream->fp);
|
||||||
|
#else
|
||||||
return ftell(stream->fp);
|
return ftell(stream->fp);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_MMAP
|
#ifdef HAVE_MMAP
|
||||||
/* Need to check stream->mapped because this function
|
/* Need to check stream->mapped because this function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user