29 Feb
2024
29 Feb
'24
7:20 p.m.
Rémi Bernon (@rbernon) commented about dlls/winewayland.drv/opengl.c:
+#if defined(SONAME_LIBEGL) + +WINE_DEFAULT_DEBUG_CHANNEL(waylanddrv); + +#define WL_EGL_PLATFORM 1 +#include <EGL/egl.h> +#include <EGL/eglext.h> + +#include "wine/wgl.h" +#include "wine/wgl_driver.h" + +static void *egl_handle; +static struct opengl_funcs opengl_funcs; +static EGLDisplay egl_display; + +#define DECL_FUNCPTR(f) static __typeof__(f) * p_##f = NULL This is `typeof` everywhere else in Wine, same for the other `__typeof__` below.
Also you don't need the `= NULL`. ```suggestion:-0+0 #define DECL_FUNCPTR(f) static typeof(f) * p_##f ``` -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5177#note_63095