diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-06-14 11:50:56 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-06-23 12:26:09 +0800 |
commit | b243ead0aa6b0ca904a5b3f30d31e2917dda360f (patch) | |
tree | e22cc318e3c41b3d9b04c8bf01b24a1231453b94 /MdePkg/Include/Base.h | |
parent | 75f0094ef75f35869d70bd96375be8109da20553 (diff) | |
download | edk2-b243ead0aa6b0ca904a5b3f30d31e2917dda360f.tar.gz edk2-b243ead0aa6b0ca904a5b3f30d31e2917dda360f.tar.bz2 edk2-b243ead0aa6b0ca904a5b3f30d31e2917dda360f.zip |
MdePkg: update Base.h in MdePkg to check the _MSC_VER
update Base.h in MdePkg to check the _MSC_VER and define
GLOBAL_REMOVE_IF_UNREFERENCED to nothing for VS2013 and higher tool
chain tags.
Cc: Liming Gao <liming.gao@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'MdePkg/Include/Base.h')
-rw-r--r-- | MdePkg/Include/Base.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index 5b311f6648..21a603a903 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -91,7 +91,7 @@ VERIFY_SIZE_OF (__VERIFY_UINT32_ENUM_SIZE, 4); // if the /OPT:REF linker option is used. We defined a macro as this is a
// a non standard extension
//
-#if defined(_MSC_EXTENSIONS) && !defined (MDE_CPU_EBC)
+#if defined(_MSC_EXTENSIONS) && _MSC_VER < 1800 && !defined (MDE_CPU_EBC)
///
/// Remove global variable from the linked image if there are no references to
/// it after all compiler and linker optimizations have been performed.
|