From 37639d8a63afda594ae1a46e643c360ae531f010 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 22 Feb 2019 19:56:02 -0500 Subject: dalist_entry_point(): explicitly apply protected visibility. --- project/extras.mk | 4 ++-- src/dalist_entry_point.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project/extras.mk b/project/extras.mk index 42f1818..bb6cd7f 100644 --- a/project/extras.mk +++ b/project/extras.mk @@ -1,5 +1,5 @@ -CFLAGS_SHARED_ATTR += -DDALIST_EXPORT -fvisibility=protected -CFLAGS_STATIC_ATTR += -DDALIST_STATIC -fvisibility=protected +CFLAGS_SHARED_ATTR += -DDALIST_EXPORT +CFLAGS_STATIC_ATTR += -DDALIST_STATIC ifeq ($(CC_BINFMT),PE) CFLAGS_CONFIG += -D_MIDIPIX_FREESTANDING -D__NT$(HOST_BITS) diff --git a/src/dalist_entry_point.c b/src/dalist_entry_point.c index e6b7464..de21516 100644 --- a/src/dalist_entry_point.c +++ b/src/dalist_entry_point.c @@ -8,7 +8,7 @@ static const void * const dalist_affiliation __attr_section__(".freestd") = 0; -int __stdcall dalist_entry_point( +int __stdcall __attr_protected__ dalist_entry_point( void * hinstance, uint32_t reason, void * reserved) -- cgit v1.2.3