mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
Use #if instead of #ifdef for WLR_HAS_*
This commit is contained in:
parent
3b8d4a9212
commit
2afd930914
4 changed files with 14 additions and 22 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue