From 72aa4f951ce9ed07f2845f86e086612b2e29fc02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Higor=20Eur=C3=ADpedes?= Date: Sat, 14 Nov 2015 17:07:49 -0300 Subject: [PATCH] (retro_file) Fix undefined symbols on win32 --- libretro-common/file/retro_file.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libretro-common/file/retro_file.c b/libretro-common/file/retro_file.c index 6f4d83d273..c2c219440b 100644 --- a/libretro-common/file/retro_file.c +++ b/libretro-common/file/retro_file.c @@ -163,7 +163,12 @@ RFILE *retro_fopen(const char *path, unsigned mode, ssize_t len) mode_str = "wb"; #endif else - flags = O_WRONLY | O_CREAT | O_TRUNC | S_IRUSR | S_IWUSR; + { + flags = O_WRONLY | O_CREAT | O_TRUNC; +#ifndef _WIN32 + flags |= S_IRUSR | S_IWUSR; +#endif + } #endif break; case RFILE_MODE_READ_WRITE: