This commit is contained in:
twinaphex 2018-01-22 19:06:12 +01:00
commit 2a6331aff4
2 changed files with 10 additions and 1 deletions

View File

@ -347,6 +347,15 @@ else ifeq ($(platform), wii)
AR = $(DEVKITPPC)/bin/powerpc-eabi-ar$(EXE_EXT)
CFLAGS += -DGEKKO -DHW_RVL -mrvl -mcpu=750 -meabi -mhard-float -DBLARGG_BIG_ENDIAN=1 -D__ppc__
# Nintendo Switch (libtransistor)
else ifeq ($(platform), switch)
TARGET := $(TARGET_NAME)_libretro_$(platform).a
include $(LIBTRANSISTOR_HOME)/libtransistor.mk
STATIC_LINKING=1
NO_MMAP = 1
ARCH = aarch64
# QNX
else ifeq ($(platform), qnx)
TARGET := $(TARGET_NAME)_libretro_$(platform).so

View File

@ -395,7 +395,7 @@ void *plat_mmap(unsigned long addr, size_t size, int need_exec, int is_fixed)
void *plat_mremap(void *ptr, size_t oldsize, size_t newsize)
{
#ifdef __linux__
#if defined(__linux__) && !defined(__SWITCH__)
void *ret = mremap(ptr, oldsize, newsize, 0);
if (ret == MAP_FAILED)
return NULL;