]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic: Use _Static_assert() in missing_audit.h instead of assert_cc()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 23 Apr 2025 08:19:59 +0000 (10:19 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 23 Apr 2025 08:33:37 +0000 (10:33 +0200)
commit44de729cdc4ffe47a79538c633fe17e2ec3f3588
tree1650069d88cc91647b333d3ef2fb99a4303b3196
parentf82e233128ff268d9412dee495f93932b754ddbe
basic: Use _Static_assert() in missing_audit.h instead of assert_cc()

We want to make the header standalone so it includes all the stuff it
needs. However, including macro.h for assert_cc() doesn't work because
of generate-audit_type-list.sh which would have to become more complex
to handle the extra include directories.

Instead, let's just use _Static_assert() directly which is a builtin and
doesn't need any extra includes.
src/basic/missing_audit.h