notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drc: update according to interpreter (2)
[pcsx_rearmed.git]
/
deps
/
libchdr
/
include
/
libchdr
/
coretypes.h
diff --git
a/deps/libchdr/include/libchdr/coretypes.h
b/deps/libchdr/include/libchdr/coretypes.h
index
30f892f
..
99ef322
100644
(file)
--- a/
deps/libchdr/include/libchdr/coretypes.h
+++ b/
deps/libchdr/include/libchdr/coretypes.h
@@
-20,6
+20,14
@@
typedef int32_t INT32;
typedef int16_t INT16;
typedef int8_t INT8;
typedef int16_t INT16;
typedef int8_t INT8;
+#ifdef USE_LIBRETRO_VFS
+#define core_file RFILE
+#define core_fopen(file) rfopen(file, "rb")
+#define core_fseek rfseek
+#define core_ftell rftell
+#define core_fread(fc, buff, len) rfread(buff, 1, len, fc)
+#define core_fclose rfclose
+#else
#define core_file FILE
#define core_fopen(file) fopen(file, "rb")
#if defined(__WIN32__) || defined(_WIN32) || defined(WIN32) || defined(__WIN64__)
#define core_file FILE
#define core_fopen(file) fopen(file, "rb")
#if defined(__WIN32__) || defined(_WIN32) || defined(WIN32) || defined(__WIN64__)
@@
-34,7
+42,11
@@
typedef int8_t INT8;
#endif
#define core_fread(fc, buff, len) fread(buff, 1, len, fc)
#define core_fclose fclose
#endif
#define core_fread(fc, buff, len) fread(buff, 1, len, fc)
#define core_fclose fclose
+#endif
+#ifdef __GNUC__
+__attribute__ ((unused))
+#endif
static UINT64 core_fsize(core_file *f)
{
UINT64 rv;
static UINT64 core_fsize(core_file *f)
{
UINT64 rv;