mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-26 00:21:57 +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)
|
#if defined(GLEW_OSMESA)
|
||||||
# define GLAPI extern
|
# define GLAPI extern
|
||||||
|
# ifndef APIENTRY
|
||||||
|
# define APIENTRY
|
||||||
|
# define GLEW_APIENTRY_DEFINED
|
||||||
|
# endif
|
||||||
# include <GL/osmesa.h>
|
# include <GL/osmesa.h>
|
||||||
|
# ifdef GLEW_APIENTRY_DEFINED
|
||||||
|
# undef APIENTRY
|
||||||
|
# undef GLEW_APIENTRY_DEFINED
|
||||||
|
# endif
|
||||||
#elif defined(GLEW_EGL)
|
#elif defined(GLEW_EGL)
|
||||||
# include <GL/eglew.h>
|
# include <GL/eglew.h>
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
|
Loading…
Reference in New Issue
Block a user