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
Create .gitlab-ci.yml
[pcsx_rearmed.git]
/
deps
/
libchdr
/
coretypes.h
diff --git
a/deps/libchdr/coretypes.h
b/deps/libchdr/coretypes.h
index
6264bea
..
d6070f5
100644
(file)
--- a/
deps/libchdr/coretypes.h
+++ b/
deps/libchdr/coretypes.h
@@
-4,10
+4,6
@@
#include <stdint.h>
#include <stdio.h>
#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;
#define ARRAY_LENGTH(x) (sizeof(x)/sizeof(x[0]))
typedef uint64_t UINT64;
@@
-26,15
+22,14
@@
typedef int8_t INT8;
#define core_fread(fc, buff, len) fread(buff, 1, len, fc)
#define core_fclose fclose
#define core_ftell ftell
#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
rv;
+
long
p = ftell(f);
+
fseek(f, 0, SEEK_END);
+
rv = ftell(f);
+
fseek(f, p, SEEK_SET);
+
return rv;
}
#endif
}
#endif