mirror of
https://github.com/ipxe/ipxe
synced 2026-02-01 15:29:45 +03:00
[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:
@@ -40,6 +40,9 @@
|
|||||||
#include <slirp/libslirp.h>
|
#include <slirp/libslirp.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#undef static_assert
|
||||||
|
#define static_assert(x) _Static_assert(x, #x)
|
||||||
|
|
||||||
/** @file
|
/** @file
|
||||||
*
|
*
|
||||||
* Linux host API
|
* Linux host API
|
||||||
|
|||||||
Reference in New Issue
Block a user