X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flibchdr%2Fcoretypes.h;h=5aecc14de4f03f7f577427a5a1fc0954bdcdd4f1;hb=03f41c38234fece3e1b4efefb9f4efb381e24b46;hp=6264bea67bbf94f3a4ec268deaa19184d195bc13;hpb=8ec1e4de88798ca548481773e49bb01a4de03139;p=pcsx_rearmed.git diff --git a/deps/libchdr/coretypes.h b/deps/libchdr/coretypes.h index 6264bea6..5aecc14d 100644 --- a/deps/libchdr/coretypes.h +++ b/deps/libchdr/coretypes.h @@ -4,10 +4,6 @@ #include #include -#ifdef __LIBRETRO__ -#include -#endif - #define ARRAY_LENGTH(x) (sizeof(x)/sizeof(x[0])) typedef uint64_t UINT64; @@ -26,15 +22,13 @@ typedef int8_t INT8; #define core_fread(fc, buff, len) fread(buff, 1, len, fc) #define core_fclose fclose #define core_ftell ftell - -static size_t core_fsize(core_file* f) +static size_t core_fsize(core_file *f) { - size_t rv; - size_t p = ftell(f); - fseek(f, 0, SEEK_END); - rv = ftell(f); - fseek(f, p, SEEK_SET); - return rv; + long p = ftell(f); + fseek(f, 0, SEEK_END); + long rv = ftell(f); + fseek(f, p, SEEK_SET); + return rv; } #endif