Merge pull request #9 from nanoant/patch/fix-android-compilation

Fix Android compilation
This commit is contained in:
Twinaphex
2017-10-11 08:01:25 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -23,8 +23,8 @@ CORE_DIR = ..
include $(CORE_DIR)/Makefile.common include $(CORE_DIR)/Makefile.common
LOCAL_SRC_FILES += $(SOURCES_C) LOCAL_SRC_FILES += $(SOURCES_C)
LOCAL_CFLAGS += -O2 -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 -DNDEBUG=1 $(INCFLAGS) LOCAL_CFLAGS += -O2 -D__LIBRETRO__ -DFRONTEND_SUPPORTS_RGB565 -DNDEBUG=1 -DGIT_VERSION=\"$(GIT_VERSION)\" $(INCFLAGS)
LOCAL_LDLIBS += -lz LOCAL_LDLIBS += -lz -llog
include $(BUILD_SHARED_LIBRARY) include $(BUILD_SHARED_LIBRARY)
+1 -1
View File
@@ -156,7 +156,7 @@ static void update_variables(void)
{ {
char *pch; char *pch;
char str[100]; char str[100];
snprintf(str, sizeof(str), var.value); snprintf(str, sizeof(str), "%s", var.value);
pch = strtok(str, "x"); pch = strtok(str, "x");
if (pch) if (pch)