aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/create_output.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-11-12 22:23:06 +0100
committeremersion <contact@emersion.fr>2018-11-12 22:23:06 +0100
commit2afd930914c9d31ed1da5ffd80b18f029e84f8c5 (patch)
tree52157267467d84cd9ce83265ca4b600b1b802af1 /sway/commands/create_output.c
parent3b8d4a9212c335211001e96a0b0fbcb8049d0557 (diff)
Use #if instead of #ifdef for WLR_HAS_*
Diffstat (limited to 'sway/commands/create_output.c')
-rw-r--r--sway/commands/create_output.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/commands/create_output.c b/sway/commands/create_output.c
index 1c2464ea..3f870acb 100644
--- a/sway/commands/create_output.c
+++ b/sway/commands/create_output.c
@@ -1,7 +1,7 @@
#include <wlr/config.h>
#include <wlr/backend/multi.h>
#include <wlr/backend/wayland.h>
-#ifdef WLR_HAS_X11_BACKEND
+#if WLR_HAS_X11_BACKEND
#include <wlr/backend/x11.h>
#endif
#include "sway/commands.h"
@@ -18,7 +18,7 @@ static void create_output(struct wlr_backend *backend, void *data) {
wlr_wl_output_create(backend);
*done = true;
}
-#ifdef WLR_HAS_X11_BACKEND
+#if WLR_HAS_X11_BACKEND
else if (wlr_backend_is_x11(backend)) {
wlr_x11_output_create(backend);
*done = true;