From 2cc6abf30933319be00b6933d3ad3ee8c6670b8b Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Wed, 1 Nov 2023 13:41:25 -0600 Subject: [PATCH] LibAccelGfx: Don't predicate using EGL/egl.h on Linux Any platform that has OpenGL and EGL should be able to use the class. --- Userland/Libraries/LibAccelGfx/Context.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Userland/Libraries/LibAccelGfx/Context.h b/Userland/Libraries/LibAccelGfx/Context.h index 42e20c4a6d..ba51f203f6 100644 --- a/Userland/Libraries/LibAccelGfx/Context.h +++ b/Userland/Libraries/LibAccelGfx/Context.h @@ -9,9 +9,10 @@ #include #include -#ifdef AK_OS_LINUX -# include -#endif +// Make sure egl.h doesn't give us definitions from X11 headers +#define EGL_NO_X11 +#include +#undef EGL_NO_X11 namespace AccelGfx {