blob: 605d0c043bdc76eb5f1ea29319b20c430e9a4e72 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From a2182e5437a6664cdb0f3330f6cbee873b6f975a Mon Sep 17 00:00:00 2001
Brad Bishop6e60e8b2018-02-01 10:27:11 -05002From: Andrea Galbusera <gizero@gmail.com>
3Date: Fri, 14 Jul 2017 09:52:54 +0200
Brad Bishop316dfdd2018-06-25 12:45:53 -04004Subject: [PATCH 15/16] EGL/glplatform.h: define EGL_CAST
Brad Bishop6e60e8b2018-02-01 10:27:11 -05005
6C++ / C typecast macros for special EGL handle values: used by libepoxy code
7The definition comes from the updated version of this header in mesa.
8
9Upstream-Status: Pending
10---
11 interface/khronos/include/EGL/eglplatform.h | 7 +++++++
12 1 file changed, 7 insertions(+)
13
14diff --git a/interface/khronos/include/EGL/eglplatform.h b/interface/khronos/include/EGL/eglplatform.h
15index 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 Bishop316dfdd2018-06-25 12:45:53 -0400312.16.1
Brad Bishop6e60e8b2018-02-01 10:27:11 -050032