diff options
author | emersion <contact@emersion.fr> | 2018-11-12 22:23:06 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-11-12 22:23:06 +0100 |
commit | 2afd930914c9d31ed1da5ffd80b18f029e84f8c5 (patch) | |
tree | 52157267467d84cd9ce83265ca4b600b1b802af1 /sway/commands/create_output.c | |
parent | 3b8d4a9212c335211001e96a0b0fbcb8049d0557 (diff) |
Use #if instead of #ifdef for WLR_HAS_*
Diffstat (limited to 'sway/commands/create_output.c')
-rw-r--r-- | sway/commands/create_output.c | 4 |
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; |