diff options
author | Chia-I Wu <[email protected]> | 2010-01-05 21:39:15 +0800 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2010-01-05 11:23:52 -0500 |
commit | 897cb8950ae14ffe7029b1daf16113ff62ce0dfe (patch) | |
tree | 66ff5c71cef8d5dcdfdacec5d69b5f52b8cb2fa9 /src/egl/main/eglcompiler.h | |
parent | ae44b92f61b78c9991060a8dd7fa7327d428c138 (diff) |
egl: Fix breakage from -fvisibility=hidden.
Mark EGL API and driver functions as PUBLIC.
Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/egl/main/eglcompiler.h')
-rw-r--r-- | src/egl/main/eglcompiler.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/egl/main/eglcompiler.h b/src/egl/main/eglcompiler.h index 6b639b75c66..f7c93f14ce2 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 */ |