From: Eric Engestrom Date: Sat, 16 Nov 2019 17:51:27 +0000 (+0000) Subject: egl: use EGL_CAST() macro in eglmesaext.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99788de90956112936fd883c0ae4e351f6a7e2da;p=mesa.git egl: use EGL_CAST() macro in eglmesaext.h Allows eglmesaext.h to be used in C++ code. This aligns this file with the rest of EGL. Signed-off-by: Eric Engestrom Reviewed-By: Tapani Pälli --- diff --git a/include/EGL/eglmesaext.h b/include/EGL/eglmesaext.h index f4332b279f8..fe5c7d91658 100644 --- a/include/EGL/eglmesaext.h +++ b/include/EGL/eglmesaext.h @@ -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