From a2f6616d21f08ca98c5c663c52d0951e3a87dad9 Mon Sep 17 00:00:00 2001 From: Myria Date: Sat, 26 Dec 2015 11:37:34 -0800 Subject: [PATCH] Fix Windows compilation by mapping fseeko64 to _fseeki64. --- ctrtool/utils.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ctrtool/utils.h b/ctrtool/utils.h index 4d766aa..f813b0c 100644 --- a/ctrtool/utils.h +++ b/ctrtool/utils.h @@ -41,7 +41,12 @@ int makedir(const char* dir); u64 _fsize(const char *filename); -#ifndef _WIN32 +#ifdef _WIN32 +inline int fseeko64(FILE *__stream, long long __off, int __whence) +{ + return _fseeki64(__stream, __off, __whence); +} +#else extern int fseeko64 (FILE *__stream, __off64_t __off, int __whence); #endif