From 22158559570e90dacc6961c76abc8cc848aa0b21 Mon Sep 17 00:00:00 2001 From: Liming Gao Date: Mon, 8 Oct 2018 12:22:38 +0800 Subject: [PATCH] MdeModulePkg RegularExpressionDxe: Enable STDARG for variable arguments Set macro for variable arguments, and remove the hard code definition to avoid the potential duplicated definition. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao Reviewed-by: Dongao Guo --- .../Universal/RegularExpressionDxe/Oniguruma/regerror.c | 1 - .../Universal/RegularExpressionDxe/RegularExpressionDxe.inf | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regerror.c b/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regerror.c index 222e8e6136..d92b61e229 100644 --- a/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regerror.c +++ b/MdeModulePkg/Universal/RegularExpressionDxe/Oniguruma/regerror.c @@ -28,7 +28,6 @@ */ #include "regint.h" -#define HAVE_STDARG_PROTOTYPES #if 0 #include /* for vsnprintf() */ diff --git a/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.inf b/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.inf index da50092cd2..df54716182 100644 --- a/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.inf +++ b/MdeModulePkg/Universal/RegularExpressionDxe/RegularExpressionDxe.inf @@ -79,6 +79,9 @@ gEfiRegularExpressionProtocolGuid ## PRODUCES [BuildOptions] + # Enable STDARG for variable arguments + *_*_*_CC_FLAGS = -DHAVE_STDARG_H + # Override MSFT build option to remove /Oi and /GL MSFT:*_*_*_CC_FLAGS = /GL- INTEL:*_*_*_CC_FLAGS = /Oi-