summaryrefslogtreecommitdiffstats
path: root/MdePkg
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2020-01-16 11:48:05 +0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-01-17 00:57:34 +0000
commit63653ff8c83e732d8bb3087db09ca8e7ca11a57a (patch)
treed4b73d4ef22e2d866fe50ca65daf9e270b710e86 /MdePkg
parent710ff7490ad897383eb35d1becadabd21a733f24 (diff)
downloadedk2-63653ff8c83e732d8bb3087db09ca8e7ca11a57a.tar.gz
edk2-63653ff8c83e732d8bb3087db09ca8e7ca11a57a.tar.bz2
edk2-63653ff8c83e732d8bb3087db09ca8e7ca11a57a.zip
MdePkg Base.h: Use correct style to check the defined macro
#if MACRO is not good style. It should be changed to #ifdef MACRO style or #if defined (MACRO) style. Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Include/Base.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h
index e0bcd0ae67..321d729c04 100644
--- a/MdePkg/Include/Base.h
+++ b/MdePkg/Include/Base.h
@@ -195,7 +195,7 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
///
#define ASM_PFX(name) _CONCATENATE (__USER_LABEL_PREFIX__, name)
-#if __APPLE__
+#ifdef __APPLE__
//
// Apple extension that is used by the linker to optimize code size
// with assembly functions. Put at the end of your .S files
@@ -799,7 +799,7 @@ typedef UINTN *BASE_LIST;
**/
#ifdef MDE_CPU_EBC
#define STATIC_ASSERT(Expression, Message)
-#elif _MSC_EXTENSIONS
+#elif defined(_MSC_EXTENSIONS)
#define STATIC_ASSERT static_assert
#else
#define STATIC_ASSERT _Static_assert