mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
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.
This commit is contained in:
parent
3181c4bec0
commit
51bfdd620e
25 changed files with 69 additions and 61 deletions
|
|
@ -23,7 +23,7 @@ foreach lib : xwayland_optional
|
|||
dep = dependency(lib, required: get_option(lib))
|
||||
if dep.found()
|
||||
xwayland_libs += dep
|
||||
conf_data.set('WLR_HAS_' + lib.underscorify().to_upper(), true)
|
||||
conf_data.set10('WLR_HAS_' + lib.underscorify().to_upper(), true)
|
||||
endif
|
||||
endforeach
|
||||
|
||||
|
|
@ -48,4 +48,4 @@ lib_wlr_xwayland = static_library(
|
|||
)
|
||||
|
||||
wlr_parts += lib_wlr_xwayland
|
||||
conf_data.set('WLR_HAS_XWAYLAND', true)
|
||||
conf_data.set10('WLR_HAS_XWAYLAND', true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue