]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
macro.h: include assert.h so that static_assert can be properly checked for
authorLennart Poettering <lennart@poettering.net>
Fri, 12 Oct 2018 14:51:31 +0000 (16:51 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Oct 2018 14:44:51 +0000 (16:44 +0200)
For the definition of assert_cc() we try to use static_assert and check
for it with "#ifdef". But that can only work if assert.h is imported
before. Hence let's do so.

src/basic/macro.h

index 63a8be440f2e286f56893d231f790eeeabcaa1b6..14d49c1a1bf8931b98848e8a1607b1dcce0c0b47 100644 (file)
@@ -1,6 +1,7 @@
 /* SPDX-License-Identifier: LGPL-2.1+ */
 #pragma once
 
+#include <assert.h>
 #include <inttypes.h>
 #include <stdbool.h>
 #include <sys/param.h>