]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Ebc/EdkIIGlueProcessorBind.h
1, Use #if defined() to judge the switching macro such as compiler macro.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Include / Ebc / EdkIIGlueProcessorBind.h
index 52343e5d664ffbd9b98f24250e788e93484d4d3e..b31a81e9aef0dfd1b8221fe1c24cc94b9379a238 100644 (file)
@@ -28,13 +28,13 @@ Abstract:
 //  if the /OPT:REF linker option is used. We defined a macro as this is a \r
 //  a non standard extension\r
 //\r
-#if _MSC_EXTENSIONS\r
+#if defined(_MSC_EXTENSIONS)\r
   #define GLOBAL_REMOVE_IF_UNREFERENCED __declspec(selectany)\r
 #else\r
   #define GLOBAL_REMOVE_IF_UNREFERENCED\r
 #endif\r
 \r
-#ifndef MDE_CPU_EBC\r
+#if !defined(MDE_CPU_EBC)\r
   #define MDE_CPU_EBC\r
 #endif   \r
 \r