[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 <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2021-03-02 16:46:14 +00:00
parent 2b5d3f582f
commit 3b8aff94bf

View File

@@ -40,6 +40,9 @@
#include <slirp/libslirp.h>
#endif
#undef static_assert
#define static_assert(x) _Static_assert(x, #x)
/** @file
*
* Linux host API