meson: Make sure defines are either set to 1 or not defined

Graphics / X.Org / X.Org Server - Povilas Kanapickas [radix.lt] - 9 April 2021 11:18 UTC

This will make the behavior of meson consistent with autotools. The configuration macros are exposed to public headers so any inconsistency is likely to break code for anyone who's not careful to use #ifdef instead of #if.

68c2cfadd meson: Make sure defines are either set to 1 or not defined
include/meson.build | 258 ++++++++++++++++++++++++++--------------------------
os/meson.build | 20 ++--
2 files changed, 141 insertions(+), 137 deletions(-)

Upstream: cgit.freedesktop.org


  • Share