meson: use a single constant for default compression setting
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 22 Apr 2022 11:10:07 +0000 (13:10 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 22 Apr 2022 13:08:28 +0000 (15:08 +0200)
commitee00684c50a47fd1b56edc3ea06da42e3848a2b1
treea0f2709423c7f0cf8cfa1fdff1ac2f21a0bc52bc
parent1d997b811411c1572e8771d95eb1597bfbb0f444
meson: use a single constant for default compression setting

Suggested by Daniele Nicolodi:
https://github.com/systemd/systemd/pull/23160#discussion_r855853716

This is possible only if the macro is never used in #if, but only in C code.
This means that all places that use #if have to be refactored into C, but we
reduce the duplication a bit, and C is nicer to read than preprocessor
conditionals.
meson.build
src/coredump/coredump.c
src/libsystemd/sd-journal/compress.h
src/libsystemd/sd-journal/journal-file.c