Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/libchdr_chd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2166,7 +2166,8 @@ static void *core_stdio_fopen(char const *path) {
-------------------------------------------------*/
static uint64_t core_stdio_fsize(void *file) {
#if defined USE_LIBRETRO_VFS
#define core_stdio_fseek_impl fseek
/* The libretro VFS fseek returns the new file position, so we adapt it as needed. */
#define core_stdio_fseek_impl(file,offset,whence) (fseek(file, offset, whence) < 0 ? -1 : 0)
#define core_stdio_ftell_impl ftell
#elif defined(__WIN32__) || defined(_WIN32) || defined(WIN32) || defined(__WIN64__)
#define core_stdio_fseek_impl _fseeki64
Expand Down