(libretro-db) Fix build

This commit is contained in:
Higor Eurípedes 2015-11-14 18:12:09 -03:00
parent 5fc267d24a
commit f527f6466f
2 changed files with 5 additions and 5 deletions

View File

@ -132,7 +132,7 @@ RFILE *retro_fopen(const char *path, unsigned mode, ssize_t len)
#endif
stream->hints &= ~RFILE_HINT_MMAP;
switch (mode)
switch (mode & 0xff)
{
case RFILE_MODE_READ:
#if defined(VITA) || defined(PSP)

View File

@ -12,7 +12,7 @@ LUA_CONVERTER_C = \
lua_converter.c \
$(LIBRETRO_COMMON_DIR)/compat/compat_fnmatch.c \
$(LIBRETRO_COMMON_DIR)/file/retro_file.c \
$(LIBRETRO_COMMON_DIR)/compat/compat.c
$(LIBRETRO_COMMON_DIR)/compat/compat_strl.c
LUA_CONVERTER_C_OBJS := $(LUA_CONVERTER_C:.c=.o)
@ -28,7 +28,7 @@ PLAIN_CONVERTER_C = \
$(LIBRETRO_COMMON_DIR)/hash/rhash.c \
$(LIBRETRO_COMMON_DIR)/compat/compat_fnmatch.c \
$(LIBRETRO_COMMON_DIR)/file/retro_file.c \
$(LIBRETRO_COMMON_DIR)/compat/compat.c
$(LIBRETRO_COMMON_DIR)/compat/compat_strl.c
PLAIN_CONVERTER_C_OBJS := $(PLAIN_CONVERTER_C:.c=.o)
@ -41,7 +41,7 @@ RARCHDB_TOOL_C = \
libretrodb.c \
$(LIBRETRO_COMMON_DIR)/compat/compat_fnmatch.c \
$(LIBRETRO_COMMON_DIR)/file/retro_file.c \
$(LIBRETRO_COMMON_DIR)/compat/compat.c
$(LIBRETRO_COMMON_DIR)/compat/compat_strl.c
RARCHDB_TOOL_OBJS := $(RARCHDB_TOOL_C:.c=.o)
@ -54,7 +54,7 @@ TESTLIB_C = \
rmsgpack_dom.c \
$(LIBRETRO_COMMON_DIR)/compat/compat_fnmatch.c \
$(LIBRETRO_COMMON_DIR)/file/retro_file.c \
$(LIBRETRO_COMMON_DIR)/compat/compat.c
$(LIBRETRO_COMMON_DIR)/compat/compat_strl.c
TESTLIB_OBJS := $(TESTLIB_C:.c=.o)