From c5cbec6fdcbf25da84159c983f3ae222f8976eb2 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 31 Dec 2013 21:55:09 +0100 Subject: [PATCH] Build fix - don't include msvc_compat.h reference in file_path.h - instead just change return type for file_read to int --- file_path.c | 2 +- file_path.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/file_path.c b/file_path.c index e14463eefa..b3e52e8708 100644 --- a/file_path.c +++ b/file_path.c @@ -71,7 +71,7 @@ bool write_file(const char *path, const void *data, size_t size) } // Generic file loader. -ssize_t read_file(const char *path, void **buf) +int read_file(const char *path, void **buf) { void *rom_buf = NULL; FILE *file = fopen(path, "rb"); diff --git a/file_path.h b/file_path.h index 4dd266cbe4..8707929cc3 100644 --- a/file_path.h +++ b/file_path.h @@ -11,7 +11,7 @@ extern "C" { #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 write_file(const char *path, const void *buf, size_t size);