aboutsummaryrefslogtreecommitdiff
path: root/util/global.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-02-27 11:31:07 +0100
committerSimon Ser <contact@emersion.fr>2023-02-27 11:33:52 +0100
commitbec94cc04014d8dcb317dc357bd64017573f63ef (patch)
tree7cc1fd55d037be4d893214390154e184a209b1b4 /util/global.c
parent8acaabcbab4f08dfae79dbfd9a1b2b5d932137c6 (diff)
backend: move #ifdefs to nested functions
Instead of littering #ifdefs everywhere, move them to the dedicated attempt_XXX_backend() functions. This makes the logic in wlr_backend_autocreate() more readable, and provides better error messages when the X11/Wayland backends are disabled at compile-time, or when WLR_BACKENDS contains a backend disabled at compile-time.
Diffstat (limited to 'util/global.c')
0 files changed, 0 insertions, 0 deletions