From: Michael Brown Date: Tue, 2 Mar 2021 16:46:14 +0000 (+0000) Subject: [build] Fix building on older versions of gcc X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b8aff94bfc7932cfed7198d48de6bc273fe951d;p=thirdparty%2Fipxe.git [build] Fix building on older versions of gcc Versions of gcc prior to 9.1 do not support the single-argument form of static_assert(). Fix by unconditionally defining a compatibility macro for the single file that uses this. Signed-off-by: Michael Brown --- diff --git a/src/interface/linux/linux_api.c b/src/interface/linux/linux_api.c index 1f44b532b..fa694330e 100644 --- a/src/interface/linux/linux_api.c +++ b/src/interface/linux/linux_api.c @@ -40,6 +40,9 @@ #include #endif +#undef static_assert +#define static_assert(x) _Static_assert(x, #x) + /** @file * * Linux host API