Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions include/glatter/glatter_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -538,12 +538,12 @@ static BOOL CALLBACK glatter_init_wgl_loader_once(PINIT_ONCE once, PVOID param,

if (mod) {
state->opengl32_module = mod;
#if defined(__GNUC__) || defined(__clang__)
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-function-type"
#endif
state->wgl_get_proc = (PROC (WINAPI*)(LPCSTR))GetProcAddress(mod, "wglGetProcAddress");
#if defined(__GNUC__) || defined(__clang__)
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
}
Expand All @@ -561,12 +561,12 @@ static BOOL CALLBACK glatter_init_egl_loader_once(PINIT_ONCE once, PVOID param,
HMODULE mod = glatter_load_system32_dll_(dll_w);
if (mod) {
state->egl_module = mod;
#if defined(__GNUC__) || defined(__clang__)
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-function-type"
#endif
state->egl_get_proc = (glatter_egl_get_proc_fn)GetProcAddress(mod, "eglGetProcAddress");
#if defined(__GNUC__) || defined(__clang__)
#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC diagnostic pop
#endif
break;
Expand Down