From 42beb6e422696c1e548576f0610550e53bff18c4 Mon Sep 17 00:00:00 2001 From: Hao Wu Date: Mon, 1 Aug 2016 14:08:54 +0800 Subject: [PATCH] MdeModulePkg DSC: Add build option to disable deprecated APIs Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Feng Tian Cc: Star Zeng Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu Reviewed-by: Star Zeng Reviewed-by: Feng Tian --- MdeModulePkg/MdeModulePkg.dsc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/MdeModulePkg/MdeModulePkg.dsc b/MdeModulePkg/MdeModulePkg.dsc index ce29eb96d1..05120c7d26 100644 --- a/MdeModulePkg/MdeModulePkg.dsc +++ b/MdeModulePkg/MdeModulePkg.dsc @@ -460,3 +460,6 @@ [Components.X64] MdeModulePkg/Universal/CapsulePei/CapsuleX64.inf +[BuildOptions] + *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES + -- 2.39.2