]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg/IpsecConfig: remove module-local ARRAY_SIZE macro
authorLaszlo Ersek <lersek@redhat.com>
Wed, 26 Oct 2016 12:14:47 +0000 (14:14 +0200)
committerLaszlo Ersek <lersek@redhat.com>
Thu, 27 Oct 2016 08:50:12 +0000 (10:50 +0200)
Rely on the central macro definition from "MdePkg/Include/Base.h" instead.

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>
NetworkPkg/Application/IpsecConfig/IpSecConfig.h

index 79a436a7b3b2a18e68a9cf717c9645db5a326af1..95bb6961136df8bfd96cb549ac06edc63a68fdbf 100644 (file)
 \r
 #include <Protocol/IpSecConfig.h>\r
 \r
 \r
 #include <Protocol/IpSecConfig.h>\r
 \r
-#ifndef ARRAY_SIZE\r
-#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))\r
-#endif\r
-\r
 #define IPSECCONFIG_STATUS_NAME    L"IpSecStatus"\r
 \r
 #define BIT(x)   (UINT32) (1 << (x))\r
 #define IPSECCONFIG_STATUS_NAME    L"IpSecStatus"\r
 \r
 #define BIT(x)   (UINT32) (1 << (x))\r