switch: define HAVE_LIBNX
authornotaz <notasas@gmail.com>
Fri, 15 Jul 2022 23:53:27 +0000 (02:53 +0300)
committernotaz <notasas@gmail.com>
Fri, 15 Jul 2022 23:53:27 +0000 (02:53 +0300)
somehow assumed it was done already

Makefile.libretro

index e17f296..0a1734b 100644 (file)
@@ -193,7 +193,7 @@ else ifeq ($(platform), libnx)
    HAVE_VFS_FD = 0
    CFLAGS += -O3 -fomit-frame-pointer -ffast-math -I$(DEVKITPRO)/libnx/include/ -fPIE -Wl,--allow-multiple-definition # -include $(LIBNX)/include/switch.h
    CFLAGS += -specs=$(DEVKITPRO)/libnx/switch.specs -DNO_OS -DNO_DYLIB -DNO_SOCKET -D__arm64__ -D__ARM_NEON__
-   CFLAGS += -D__SWITCH__
+   CFLAGS += -D__SWITCH__ -DHAVE_LIBNX
    CFLAGS += -DARM -D__aarch64__=1 -march=armv8-a -mtune=cortex-a57 -mtp=soft -DHAVE_INTTYPES -DLSB_FIRST -ffast-math -mcpu=cortex-a57+crc+fp+simd -ffunction-sections
    CFLAGS += -ftree-vectorize
    CFLAGS += -Ifrontend/switch -ftree-vectorize