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 <liming.gao@intel.com>
Reviewed-by: Dongao Guo <dongao.guo@intel.com>
This commit is contained in:
Liming Gao 2018-10-08 12:22:38 +08:00
parent 3948c510ed
commit 2215855957
2 changed files with 3 additions and 1 deletions

View File

@ -28,7 +28,6 @@
*/
#include "regint.h"
#define HAVE_STDARG_PROTOTYPES
#if 0
#include <stdio.h> /* for vsnprintf() */

View File

@ -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-