aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-11-12 10:12:46 +0100
committeremersion <contact@emersion.fr>2018-11-12 10:12:46 +0100
commit51bfdd620e70c41e1a9fb4ce7831eddfb1bf893b (patch)
treef32586aa88e18d9bfec7cbcbeb5c682b2f35fb4a /include/wlr/render
parent3181c4bec06d2fe51da052c0a08c8287725ec900 (diff)
Use #if instead of #ifdef for wlroots config data
This prevents some annoying issues when e.g. not including wlr/config.h or making a typo in the guard name.
Diffstat (limited to 'include/wlr/render')
-rw-r--r--include/wlr/render/egl.h2
-rw-r--r--include/wlr/render/interface.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/wlr/render/egl.h b/include/wlr/render/egl.h
index 9ba2996a..fedb6fdd 100644
--- a/include/wlr/render/egl.h
+++ b/include/wlr/render/egl.h
@@ -11,7 +11,7 @@
#include <wlr/config.h>
-#if !(defined(WLR_HAS_X11_BACKEND) || defined(WLR_HAS_WAYLAND))
+#if !WLR_HAS_X11_BACKEND && !WLR_HAS_XWAYLAND
#define MESA_EGL_NO_X11_HEADERS
#endif
diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h
index 9500bced..a7f97a89 100644
--- a/include/wlr/render/interface.h
+++ b/include/wlr/render/interface.h
@@ -11,7 +11,7 @@
#include <wlr/config.h>
-#if !(defined(WLR_HAS_X11_BACKEND) || defined(WLR_HAS_WAYLAND))
+#if !WLR_HAS_X11_BACKEND && !WLR_HAS_XWAYLAND
#define MESA_EGL_NO_X11_HEADERS
#endif