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 --- src/egl/main/eglcompiler.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/egl/main/eglcompiler.h') diff --git a/src/egl/main/eglcompiler.h b/src/egl/main/eglcompiler.h index 6b639b75c6..f7c93f14ce 100644 --- a/src/egl/main/eglcompiler.h +++ b/src/egl/main/eglcompiler.h @@ -61,4 +61,14 @@ #endif +/** + * Function visibility + */ +#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303 +# define PUBLIC __attribute__((visibility("default"))) +#else +# define PUBLIC +#endif + + #endif /* EGLCOMPILER_INCLUDED */ -- cgit v1.2.3