mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-11 08:43:49 +00:00
Define APIENTRY in osmesa build if not defined.
This commit is contained in:
parent
e1a80a9f12
commit
c050e33aa0
@ -6,7 +6,15 @@
|
||||
|
||||
#if defined(GLEW_OSMESA)
|
||||
# define GLAPI extern
|
||||
# ifndef APIENTRY
|
||||
# define APIENTRY
|
||||
# define GLEW_APIENTRY_DEFINED
|
||||
# endif
|
||||
# include <GL/osmesa.h>
|
||||
# ifdef GLEW_APIENTRY_DEFINED
|
||||
# undef APIENTRY
|
||||
# undef GLEW_APIENTRY_DEFINED
|
||||
# endif
|
||||
#elif defined(GLEW_EGL)
|
||||
# include <GL/eglew.h>
|
||||
#elif defined(_WIN32)
|
||||
|
Loading…
Reference in New Issue
Block a user