mirror of
https://github.com/ipxe/ipxe
synced 2025-12-29 02:52:36 +03:00
[build] Provide common ARRAY_SIZE() definition
Several files define the ARRAY_SIZE() macro as used in Linux. Provide a common definition for this in include/compiler.h. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -27,10 +27,6 @@ FILE_LICENCE(GPL2_ONLY);
|
||||
|
||||
#define WAIT_FACTOR 1
|
||||
|
||||
#ifndef ARRAY_SIZE
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
|
||||
#endif
|
||||
|
||||
#define VXGE_HW_MAC_MAX_WIRE_PORTS 2
|
||||
#define VXGE_HW_MAC_MAX_AGGR_PORTS 2
|
||||
#define VXGE_HW_MAC_MAX_PORTS 3
|
||||
|
||||
Reference in New Issue
Block a user