egl: use EGL_CAST() macro in eglmesaext.h
authorEric Engestrom <eric.engestrom@intel.com>
Sat, 16 Nov 2019 17:51:27 +0000 (17:51 +0000)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 19 Nov 2019 22:00:24 +0000 (22:00 +0000)
Allows eglmesaext.h to be used in C++ code.

This aligns this file with the rest of EGL.

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-By: Tapani Pälli <tapani.palli@intel.com>
include/EGL/eglmesaext.h

index f4332b279f879197d914b72749b3561326c3888d..fe5c7d9165803e40b5302ca5fca11a2588c44b7c 100644 (file)
@@ -76,7 +76,7 @@ typedef EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSREGIONNOK) (EGLDisplay dpy, EG
 
 #ifndef EGL_MESA_configless_context
 #define EGL_MESA_configless_context 1
-#define EGL_NO_CONFIG_MESA                     ((EGLConfig)0)
+#define EGL_NO_CONFIG_MESA                     EGL_CAST(EGLConfig,0)
 #endif
 
 #ifndef EGL_MESA_drm_image_formats