replace libretro-common 29

This commit is contained in:
AZO234 2019-03-01 08:09:43 +09:00
parent cf420f7d0b
commit d975b822fb
3 changed files with 9 additions and 5 deletions

View File

@ -728,7 +728,7 @@ SOURCES_C += $(NP2_PATH)/sdl2/libretro/libretro-common/rthreads/xenon_sdl_thread
endif
ifeq ($(platform), unix)
SOURCES_C += $(NP2_PATH)/sdl2/libretro/libretro-common/compat/compat_ifaddrs.c
#SOURCES_C += $(NP2_PATH)/sdl2/libretro/libretro-common/compat/compat_ifaddrs.c
endif
ifeq ($(platform), windows_msvc2003_x86)

View File

@ -23,9 +23,10 @@
/* THIS FILE HAS NOT BEEN VALIDATED ON PLATFORMS BESIDES MSVC */
#ifdef _MSC_VER
#include <stdio.h>
#include <retro_common.h>
#include <stdio.h>
#include <stdarg.h>
#if defined(_MSC_VER) && _MSC_VER < 1800

View File

@ -424,10 +424,13 @@ rxml_document_t *rxml_load_document(const char *path)
RFILE *file = filestream_open(path,
RETRO_VFS_FILE_ACCESS_READ,
RETRO_VFS_FILE_ACCESS_HINT_NONE);
if (!file)
return NULL;
rxml_document_t *doc = (rxml_document_t*)calloc(1, sizeof(*doc));
if (!file) {
rxml_free_document(doc);
return NULL;
}
if (!doc)
goto error;