diff --git a/interface/khronos/include/EGL/eglplatform.h b/interface/khronos/include/EGL/eglplatform.h index 1f7c93061..c39d4254c 100644 --- a/interface/khronos/include/EGL/eglplatform.h +++ b/interface/khronos/include/EGL/eglplatform.h @@ -202,4 +202,11 @@ EGLAPI void EGLAPIENTRY BEGL_GetDefaultDriverInterfaces(BEGL_DriverInterfaces *i #include "interface/khronos/common/khrn_client_mangle.h" #endif +/* C++ / C typecast macros for special EGL handle values */ +#if defined(__cplusplus) +#define EGL_CAST(type, value) (static_cast(value)) +#else +#define EGL_CAST(type, value) ((type) (value)) +#endif + #endif /* __eglplatform_h */