diff options
author | Michael Brown | 2017-03-10 16:40:17 +0100 |
---|---|---|
committer | Michael Brown | 2017-03-10 16:44:11 +0100 |
commit | afdebdc163268bfc31d927cdfbbf92ed1aa93a6f (patch) | |
tree | 20ed64d9db9b9f356137daf73a87538edebc3b7a /src/drivers/net/pcnet32.h | |
parent | [iscsi] Don't close when receiving NOP-In (diff) | |
download | ipxe-afdebdc163268bfc31d927cdfbbf92ed1aa93a6f.tar.gz ipxe-afdebdc163268bfc31d927cdfbbf92ed1aa93a6f.tar.xz ipxe-afdebdc163268bfc31d927cdfbbf92ed1aa93a6f.zip |
[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>
Diffstat (limited to 'src/drivers/net/pcnet32.h')
-rw-r--r-- | src/drivers/net/pcnet32.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/drivers/net/pcnet32.h b/src/drivers/net/pcnet32.h index 5e4492ef..f06d7fd0 100644 --- a/src/drivers/net/pcnet32.h +++ b/src/drivers/net/pcnet32.h @@ -23,8 +23,6 @@ FILE_LICENCE ( GPL2_OR_LATER ); #ifndef _PCNET32_H_ #define _PCNET32_H_ -#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) - /* * Set the number of Tx and Rx buffers, using Log_2(# buffers). * Set default values to 16 Tx buffers and 32 Rx buffers. |