mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-29 19:15:38 +00:00
dep/glad: Work around missing EGL_CAST on ARM drivers
This commit is contained in:
parent
86c6be41b3
commit
79841d13e2
|
@ -191,6 +191,15 @@
|
|||
#define GLAPI extern
|
||||
#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
|
||||
extern "C" {
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue