(XDK Salamander) Build fix - ssize_t not there on MSVC 2003 - but

size_t is
This commit is contained in:
twinaphex 2013-12-26 21:30:31 +01:00
parent d6fc75240e
commit 75306f7057
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,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) size_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");

View File

@ -11,7 +11,7 @@
extern "C" { extern "C" {
#endif #endif
ssize_t read_file(const char *path, void **buf); size_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);