mirror of https://github.com/acidanthera/audk.git
NetworkPkg/IpsecConfig: guard the definition of ARRAY_SIZE
In one of the next patches, we'll introduce ARRAY_SIZE in "MdePkg/Include/Base.h". In order to proceed in small steps, make the module-local definition of ARRAY_SIZE conditional. This way the introduction of the macro under MdePkg will silently switch this module over (after which we can remove the module-local definition completely). Cc: Jiaxin Wu <jiaxin.wu@intel.com> Cc: Siyuan Fu <siyuan.fu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
This commit is contained in:
parent
f6009a8238
commit
2f2a78f9d6
|
@ -27,7 +27,9 @@
|
||||||
|
|
||||||
#include <Protocol/IpSecConfig.h>
|
#include <Protocol/IpSecConfig.h>
|
||||||
|
|
||||||
|
#ifndef ARRAY_SIZE
|
||||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
|
||||||
|
#endif
|
||||||
|
|
||||||
#define IPSECCONFIG_STATUS_NAME L"IpSecStatus"
|
#define IPSECCONFIG_STATUS_NAME L"IpSecStatus"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue