| Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 1 | From 9568135c3e4c23e9056135a13cee58c37456aaac Mon Sep 17 00:00:00 2001 | 
| Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 2 | From: Andrea Galbusera <gizero@gmail.com> | 
|  | 3 | Date: Fri, 14 Jul 2017 09:52:54 +0200 | 
| Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 4 | Subject: [PATCH 15/19] EGL/glplatform.h: define EGL_CAST | 
| Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 5 |  | 
|  | 6 | C++ / C typecast macros for special EGL handle values: used by libepoxy code | 
|  | 7 | The definition comes from the updated version of this header in mesa. | 
|  | 8 |  | 
|  | 9 | Upstream-Status: Pending | 
|  | 10 | --- | 
|  | 11 | interface/khronos/include/EGL/eglplatform.h | 7 +++++++ | 
|  | 12 | 1 file changed, 7 insertions(+) | 
|  | 13 |  | 
|  | 14 | diff --git a/interface/khronos/include/EGL/eglplatform.h b/interface/khronos/include/EGL/eglplatform.h | 
|  | 15 | index 1f7c930..c39d425 100644 | 
|  | 16 | --- a/interface/khronos/include/EGL/eglplatform.h | 
|  | 17 | +++ b/interface/khronos/include/EGL/eglplatform.h | 
|  | 18 | @@ -202,4 +202,11 @@ EGLAPI void EGLAPIENTRY BEGL_GetDefaultDriverInterfaces(BEGL_DriverInterfaces *i | 
|  | 19 | #include "interface/khronos/common/khrn_client_mangle.h" | 
|  | 20 | #endif | 
|  | 21 |  | 
|  | 22 | +/* C++ / C typecast macros for special EGL handle values */ | 
|  | 23 | +#if defined(__cplusplus) | 
|  | 24 | +#define EGL_CAST(type, value) (static_cast<type>(value)) | 
|  | 25 | +#else | 
|  | 26 | +#define EGL_CAST(type, value) ((type) (value)) | 
|  | 27 | +#endif | 
|  | 28 | + | 
|  | 29 | #endif /* __eglplatform_h */ | 
|  | 30 | -- | 
| Brad Bishop | 26bdd44 | 2019-08-16 17:08:17 -0400 | [diff] [blame] | 31 | 2.22.0 | 
| Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 32 |  |