summaryrefslogtreecommitdiff
path: root/include/compat.h
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-08-23 11:13:09 +0200
committerattilamolnar <attilamolnar@hush.com>2013-09-08 17:21:37 +0200
commitba7431b4fd6c62dd04d252e769e825769accb2a9 (patch)
treebd136fbb263d2bed7d0b57b63aa61686f4ad19a5 /include/compat.h
parentdeb18ee9cfa531a87141aea61171c6899ef7d687 (diff)
Hide all symbols that aren't exported explicitly
In addition to reducing the sizes of all binaries this also helps the optimizer
Diffstat (limited to 'include/compat.h')
-rw-r--r--include/compat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/compat.h b/include/compat.h
index 1cdad06c2..0357f5478 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -111,6 +111,6 @@
#else
# include <unistd.h>
# define ENTRYPOINT int main(int argc, char** argv)
-# define DllExport
-# define CoreExport
+# define DllExport __attribute__ ((visibility ("default")))
+# define CoreExport __attribute__ ((visibility ("default")))
#endif