diff --git a/love/src/jni/openal-soft/Android.mk b/love/src/jni/openal-soft/Android.mk index 1146b407..6afb92f9 100644 --- a/love/src/jni/openal-soft/Android.mk +++ b/love/src/jni/openal-soft/Android.mk @@ -12,8 +12,8 @@ LOCAL_ARM_NEON := true # # Flags # -LOCAL_CFLAGS := -std=c11 -DAL_ALEXT_PROTOTYPES -DHAVE_OBOE -DHAVE_OPENSL -DRESTRICT=__restrict -LOCAL_CPPFLAGS := -std=c++14 +LOCAL_CFLAGS := -std=c11 -DAL_ALEXT_PROTOTYPES -DHAVE_OBOE -DHAVE_OPENSL -fvisibility=hidden +LOCAL_CPPFLAGS := -std=c++14 -fvisibility-inlines-hidden LOCAL_CPP_FEATURES := exceptions # diff --git a/love/src/jni/openal-soft/config.h b/love/src/jni/openal-soft/config.h index 959c37d2..48102ee3 100644 --- a/love/src/jni/openal-soft/config.h +++ b/love/src/jni/openal-soft/config.h @@ -1,6 +1,6 @@ /* API declaration export attribute */ -#define AL_API __attribute__((visibility("protected"))) -#define ALC_API __attribute__((visibility("protected"))) +#define AL_API __attribute__((visibility("default"))) +#define ALC_API __attribute__((visibility("default"))) /* Define a restrict macro for non-aliased pointers */ #define RESTRICT __restrict