dep/glad: Work around missing EGL_CAST on ARM drivers

This commit is contained in:
Connor McLaughlin 2020-07-11 03:29:04 +10:00
parent 86c6be41b3
commit 79841d13e2

View file

@ -191,6 +191,15 @@
#define GLAPI extern #define GLAPI extern
#endif #endif
// ARM drivers are missing EGL_CAST...
#ifndef EGL_CAST
#ifdef __cplusplus
#define EGL_CAST(type, value) static_cast<type>(value)
#else
#define EGL_CAST(type, value) ((type) (value))
#endif
#endif
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif