summaryrefslogtreecommitdiff
path: root/MdeModulePkg
diff options
context:
space:
mode:
authorLaszlo Ersek <lersek@redhat.com>2016-10-26 14:14:47 +0200
committerLaszlo Ersek <lersek@redhat.com>2016-10-27 10:50:09 +0200
commit8f04ef300d25f0252cdf23c2cf96d076db15508a (patch)
treebe4b133e345fa693635c7a25035b1bf51d43469a /MdeModulePkg
parentc3ead528287db5ae779fc7ca00f935516d685c2a (diff)
downloadedk2-platforms-8f04ef300d25f0252cdf23c2cf96d076db15508a.tar.xz
MdeModulePkg/RegularExpressionDxe: remove module-local ARRAY_SIZE macro
Rely on the central macro definition from "MdePkg/Include/Base.h" instead. Cc: Cecil Sheng <cecil.sheng@hpe.com> Cc: Feng Tian <feng.tian@intel.com> Cc: Star Zeng <star.zeng@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Feng Tian <feng.tian@Intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'MdeModulePkg')
-rw-r--r--MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.h b/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.h
index 73ea92b5a1..0defa56e81 100644
--- a/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.h
+++ b/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.h
@@ -26,10 +26,6 @@
#include <Library/DebugLib.h>
#include <Library/BaseLib.h>
-#ifndef ARRAY_SIZE
-#define ARRAY_SIZE(Array) (sizeof(Array) / sizeof(*Array))
-#endif
-
/**
Checks if the input string matches to the regular expression pattern.