]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Ipf/EdkIIGlueProcessorBind.h
1, Use #if defined() to judge the switching macro such as compiler macro.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Include / Ipf / EdkIIGlueProcessorBind.h
index beb31c689a9f4f7613af2f7d981ea58a87452d42..130c6b870ccd91cb93d476cbe97ea783ff605583 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_IPF\r
+#if !defined(MDE_CPU_IPF)\r
   #define MDE_CPU_IPF\r
 #endif\r
 \r