From f009086ba30eb17c56b5c374e64e554870b961fe Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 2 Feb 2019 12:17:03 -0500 Subject: project: apply protected visibility to both the static and dynamic builds. --- include/pemagine/pe_api.h | 10 +++++----- project/extras.mk | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/pemagine/pe_api.h b/include/pemagine/pe_api.h index f7f9346..f43e8e1 100644 --- a/include/pemagine/pe_api.h +++ b/include/pemagine/pe_api.h @@ -24,21 +24,21 @@ #endif /* hidden visibility */ -#if defined(__attr_hidden__) -#define pe_hidden __attr_hidden__ +#if defined(__attr_protected__) +#define pe_protected __attr_protected__ #else -#define pe_hidden +#define pe_protected #endif /* pe_api */ #if defined (PE_LDSO) -#define pe_api pe_hidden +#define pe_api pe_protected #elif defined (PE_EXPORT) #define pe_api pe_export #elif defined (PE_IMPORT) #define pe_api pe_import #elif defined (PE_STATIC) -#define pe_api pe_hidden +#define pe_api pe_protected #else #define pe_api #endif diff --git a/project/extras.mk b/project/extras.mk index 3bf3bac..3b55c90 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -1,5 +1,5 @@ -CFLAGS_SHARED_ATTR += -DPE_EXPORT -fvisibility=hidden -CFLAGS_STATIC_ATTR += -DPE_STATIC -fvisibility=hidden +CFLAGS_SHARED_ATTR += -DPE_EXPORT -fvisibility=protected +CFLAGS_STATIC_ATTR += -DPE_STATIC -fvisibility=protected CFLAGS_CONFIG += -D_MIDIPIX_FREESTANDING -D__NT$(HOST_BITS) CFLAGS_CONFIG += -UWIN32 -U_WIN32 -U__WIN32 -U__WIN32__ -- cgit v1.2.3