From: Lennart Poettering Date: Fri, 12 Oct 2018 14:51:31 +0000 (+0200) Subject: macro.h: include assert.h so that static_assert can be properly checked for X-Git-Tag: v240~473^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7e61bd0f678dacdd470cc72b202d411cca3f20d9;p=thirdparty%2Fsystemd.git macro.h: include assert.h so that static_assert can be properly checked for 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. --- diff --git a/src/basic/macro.h b/src/basic/macro.h index 63a8be440f2..14d49c1a1bf 100644 --- a/src/basic/macro.h +++ b/src/basic/macro.h @@ -1,6 +1,7 @@ /* SPDX-License-Identifier: LGPL-2.1+ */ #pragma once +#include #include #include #include