mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-22 22:55:06 +00:00
SCI/Utah GLEW branch visibility attribute for GLEWAPI - gcc 4 and SunPro compiler
This commit is contained in:
parent
3442e0aeb0
commit
b8892a63b9
@ -94,9 +94,10 @@ typedef _W64 int ptrdiff_t;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* GLEW_STATIC needs to be set when using the static version.
|
||||
* GLEW_BUILD is set when building the DLL version.
|
||||
* GLEW_STATIC is defined for static library.
|
||||
* GLEW_BUILD is defined for building the DLL library.
|
||||
*/
|
||||
|
||||
#ifdef GLEW_STATIC
|
||||
# define GLEWAPI extern
|
||||
#else
|
||||
@ -130,6 +131,23 @@ typedef _W64 int ptrdiff_t;
|
||||
|
||||
#define GLEW_APIENTRY_DEFINED
|
||||
#define APIENTRY
|
||||
|
||||
/*
|
||||
* GLEW_STATIC is defined for static library.
|
||||
*/
|
||||
|
||||
#ifdef GLEW_STATIC
|
||||
# define GLEWAPI extern
|
||||
#else
|
||||
# if defined(__GNUC__) && __GNUC__>=4
|
||||
# define GLEWAPI extern __attribute__ ((visibility("default")))
|
||||
# elif defined(__SUNPRO_C) || defined(__SUNPRO_CC)
|
||||
# define GLEWAPI extern __global
|
||||
# else
|
||||
# define GLEWAPI extern
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#define GLEWAPI extern
|
||||
|
||||
/* <glu.h> */
|
||||
|
Loading…
Reference in New Issue
Block a user