mirror of
https://github.com/libretro/RetroArch.git
synced 2024-10-08 15:13:24 +00:00
Build fix - don't include msvc_compat.h reference in file_path.h -
instead just change return type for file_read to int
This commit is contained in:
parent
aa5a74ed7f
commit
c5cbec6fdc
@ -71,7 +71,7 @@ bool write_file(const char *path, const void *data, size_t size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Generic file loader.
|
// Generic file loader.
|
||||||
ssize_t read_file(const char *path, void **buf)
|
int read_file(const char *path, void **buf)
|
||||||
{
|
{
|
||||||
void *rom_buf = NULL;
|
void *rom_buf = NULL;
|
||||||
FILE *file = fopen(path, "rb");
|
FILE *file = fopen(path, "rb");
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ssize_t read_file(const char *path, void **buf);
|
int read_file(const char *path, void **buf);
|
||||||
bool read_file_string(const char *path, char **buf);
|
bool read_file_string(const char *path, char **buf);
|
||||||
bool write_file(const char *path, const void *buf, size_t size);
|
bool write_file(const char *path, const void *buf, size_t size);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user