summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2022-01-03 23:42:12 +0000
committerSadie Powell <sadie@witchery.services>2022-01-04 00:39:05 +0000
commitdb6b2225b186e6254443e00bc04b43664bf96d39 (patch)
tree33c815926a21fc82a137846b94449d537c89fb17 /include
parentc6c9d9591cc528bc2ca70747dcb3cc248cb4269b (diff)
Use GNU visibility attributes when on non-Windows.
This reduces binary sizes by several megabytes on my system.
Diffstat (limited to 'include')
-rw-r--r--include/services.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/services.h b/include/services.h
index d6d98adcf..823aad8a3 100644
--- a/include/services.h
+++ b/include/services.h
@@ -51,8 +51,8 @@
#define _(x) x
#ifndef _WIN32
-# define DllExport
-# define CoreExport
+# define DllExport __attribute__ ((visibility ("default")))
+# define CoreExport __attribute__ ((visibility ("default")))
# define anope_close close
#else
# include "anope_windows.h"