From 42e38692d2db1abc5e92ce3378f9dba083dbdc8f Mon Sep 17 00:00:00 2001 From: M4xw Date: Mon, 8 Jun 2020 12:47:15 +0200 Subject: [PATCH 1/2] [Libnx] Use -fcommon --- Makefile.libnx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.libnx b/Makefile.libnx index 7146809040..b126382b59 100644 --- a/Makefile.libnx +++ b/Makefile.libnx @@ -122,7 +122,7 @@ APP_ICON := pkg/libnx/retroarch.jpg #--------------------------------------------------------------------------------- ARCH := -march=armv8-a -mtune=cortex-a57 -mtp=soft -fPIE -mcpu=cortex-a57+crc+fp+simd -CFLAGS := -g -Wall -O3 -ffast-math -ffunction-sections \ +CFLAGS := -g -Wall -O3 -fcommon -ffast-math -ffunction-sections \ $(ARCH) $(DEFINES) $(INCLUDE_DIRS) -I$(LIBNX)/include -I$(PORTLIBS)/include/ -include $(LIBNX)/include/switch.h #$(shell $(PORTLIBS)/bin/freetype-config --cflags) CFLAGS += $(INCLUDE) -DSWITCH=1 -DHAVE_LIBNX=1 -DNXLINK=1 -DHAVE_SHADERPIPELINE -DHAVE_ONLINE_UPDATER -DHAVE_UPDATE_ASSETS -DHAVE_UPDATE_CORES -DHAVE_STB_FONT #-DHAVE_FREETYPE From bad97e29d28159ca466d45f28ede829eb82d58f3 Mon Sep 17 00:00:00 2001 From: M4xw Date: Fri, 4 Sep 2020 20:56:26 +0200 Subject: [PATCH 2/2] Fix Regression caused by 023fd4f3 --- libretro-common/include/audio/audio_resampler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libretro-common/include/audio/audio_resampler.h b/libretro-common/include/audio/audio_resampler.h index a251d0240b..d728bf58d9 100644 --- a/libretro-common/include/audio/audio_resampler.h +++ b/libretro-common/include/audio/audio_resampler.h @@ -67,12 +67,13 @@ typedef unsigned resampler_simd_mask_t; struct resampler_data { - double ratio; const float *data_in; float *data_out; size_t input_frames; size_t output_frames; + + double ratio; }; /* Returns true if config key was found. Otherwise,