From ba7431b4fd6c62dd04d252e769e825769accb2a9 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Fri, 23 Aug 2013 11:13:09 +0200 Subject: Hide all symbols that aren't exported explicitly In addition to reducing the sizes of all binaries this also helps the optimizer --- include/compat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/compat.h') 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 # define ENTRYPOINT int main(int argc, char** argv) -# define DllExport -# define CoreExport +# define DllExport __attribute__ ((visibility ("default"))) +# define CoreExport __attribute__ ((visibility ("default"))) #endif -- cgit v1.2.3