diff options
author | Chia-I Wu <olvaffe@gmail.com> | 2010-01-05 21:39:15 +0800 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-01-05 11:23:52 -0500 |
commit | 897cb8950ae14ffe7029b1daf16113ff62ce0dfe (patch) | |
tree | 66ff5c71cef8d5dcdfdacec5d69b5f52b8cb2fa9 /include | |
parent | ae44b92f61b78c9991060a8dd7fa7327d428c138 (diff) |
egl: Fix breakage from -fvisibility=hidden.
Mark EGL API and driver functions as PUBLIC.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/EGL/eglplatform.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h index 9e83b60003..09abb5d844 100644 --- a/include/EGL/eglplatform.h +++ b/include/EGL/eglplatform.h @@ -18,6 +18,11 @@ #include <stdint.h> #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); |