diff options
Diffstat (limited to 'deps/libchdr/coretypes.h')
-rw-r--r-- | deps/libchdr/coretypes.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/deps/libchdr/coretypes.h b/deps/libchdr/coretypes.h index 5aecc14..fbe2d7d 100644 --- a/deps/libchdr/coretypes.h +++ b/deps/libchdr/coretypes.h @@ -4,6 +4,10 @@ #include <stdint.h> #include <stdio.h> +#ifdef __LIBRETRO__ +#include <streams/file_stream_transforms.h> +#endif + #define ARRAY_LENGTH(x) (sizeof(x)/sizeof(x[0])) typedef uint64_t UINT64; @@ -24,9 +28,10 @@ typedef int8_t INT8; #define core_ftell ftell static size_t core_fsize(core_file *f) { + long rv; long p = ftell(f); fseek(f, 0, SEEK_END); - long rv = ftell(f); + rv = ftell(f); fseek(f, p, SEEK_SET); return rv; } |