From 897cb8950ae14ffe7029b1daf16113ff62ce0dfe Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 5 Jan 2010 21:39:15 +0800 Subject: egl: Fix breakage from -fvisibility=hidden. Mark EGL API and driver functions as PUBLIC. Signed-off-by: Chia-I Wu --- include/EGL/eglplatform.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/EGL/eglplatform.h') diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h index 9e83b600035..09abb5d844a 100644 --- a/include/EGL/eglplatform.h +++ b/include/EGL/eglplatform.h @@ -18,6 +18,11 @@ #include #endif +#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303 +# define EGLAPI __attribute__((visibility("default"))) +# define EGLAPIENTRY +#endif + /* Macros used in EGL function prototype declarations. * * EGLAPI return-type EGLAPIENTRY eglFunction(arguments); -- cgit v1.2.3