diff options
author | Adam Jackson <[email protected]> | 2005-02-08 05:46:53 +0000 |
---|---|---|
committer | Adam Jackson <[email protected]> | 2005-02-08 05:46:53 +0000 |
commit | d084982240bafba0169c4a6cacf02d45d6cfd8c1 (patch) | |
tree | 691f990d4581a5367599bc44718d12303b27da87 /include/GL/gl.h | |
parent | 4885a9eb207655ac23b64274034e1d51d2c8e6ce (diff) |
Bug #2477: Make GLU/GLw/glut build properly even with -fvisibility=hidden.
Diffstat (limited to 'include/GL/gl.h')
-rw-r--r-- | include/GL/gl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/GL/gl.h b/include/GL/gl.h index f910c3221aa..1426df481c2 100644 --- a/include/GL/gl.h +++ b/include/GL/gl.h @@ -62,6 +62,9 @@ #elif defined(__CYGWIN__) && defined(USE_OPENGL32) /* use native windows opengl32 */ # define GLAPI extern # define GLAPIENTRY __stdcall +#elif defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303 +# define GLAPI __attribute__((visibility("default"))) +# define GLAPIENTRY #endif /* WIN32 && !CYGWIN */ #if (defined(__BEOS__) && defined(__POWERPC__)) || defined(__QUICKDRAW__) |