Define APIENTRY in osmesa build if not defined.

This commit is contained in:
Anuraag Agrawal 2024-03-22 16:41:17 +09:00 committed by Nigel Stewart
parent e1a80a9f12
commit c050e33aa0

View File

@ -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)