Rémi Bernon (@rbernon) commented about dlls/winewayland.drv/opengl.c:
+#undef LOAD_FUNCPTR_DLSYM
- egl_client_exts = p_eglQueryString(EGL_NO_DISPLAY, EGL_EXTENSIONS);
+#define REQUIRE_CLIENT_EXT(ext) \
- do { \
if (!has_extension(egl_client_exts, #ext)) \
{ ERR("Failed to find required extension %s\n", #ext); goto err; } \
- } while(0)
- REQUIRE_CLIENT_EXT(EGL_KHR_client_get_all_proc_addresses);
- REQUIRE_CLIENT_EXT(EGL_KHR_platform_wayland);
+#undef REQUIRE_CLIENT_EXT
+#define LOAD_FUNCPTR_EGL(func) \
- do { \
if (!(p_##func = (__typeof__(func) *)p_eglGetProcAddress(#func))) \
Though this could probably just be a `(void *)` cast.