mirror of
https://github.com/libretro/RetroArch
synced 2025-02-22 03:40:43 +00:00
Make return type of read_file ssize_t again - include
msvc_compat for Win32 boxes to get typedef for ssize_t
This commit is contained in:
parent
244fdb6030
commit
cf4c68a072
@ -39,6 +39,7 @@
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#define setmode _setmode
|
#define setmode _setmode
|
||||||
#endif
|
#endif
|
||||||
|
#include "msvc/msvc_compat.h"
|
||||||
#ifdef _XBOX
|
#ifdef _XBOX
|
||||||
#include <xtl.h>
|
#include <xtl.h>
|
||||||
#define INVALID_FILE_ATTRIBUTES -1
|
#define INVALID_FILE_ATTRIBUTES -1
|
||||||
@ -70,7 +71,7 @@ bool write_file(const char *path, const void *data, size_t size)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Generic file loader.
|
// Generic file loader.
|
||||||
size_t read_file(const char *path, void **buf)
|
ssize_t 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
|
||||||
|
|
||||||
size_t read_file(const char *path, void **buf);
|
ssize_t 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…
x
Reference in New Issue
Block a user