mirror of
https://github.com/ipxe/ipxe
synced 2025-12-08 10:20:24 +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>
|
||||
#endif
|
||||
|
||||
#undef static_assert
|
||||
#define static_assert(x) _Static_assert(x, #x)
|
||||
|
||||
/** @file
|
||||
*
|
||||
* Linux host API
|
||||
|
||||
Reference in New Issue
Block a user