summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2019-02-22 19:56:02 -0500
committermidipix <writeonce@midipix.org>2019-02-22 19:56:02 -0500
commit37639d8a63afda594ae1a46e643c360ae531f010 (patch)
tree341df809bca97857b72988953180e95cc9b94b92
parent437e2542ecf1c8716335345b06f9cfe0806f2304 (diff)
downloaddalist-37639d8a63afda594ae1a46e643c360ae531f010.tar.bz2
dalist-37639d8a63afda594ae1a46e643c360ae531f010.tar.xz
dalist_entry_point(): explicitly apply protected visibility.
-rw-r--r--project/extras.mk4
-rw-r--r--src/dalist_entry_point.c2
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)