]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/X64/ProcessorBind.h
Remove __APPLE__ usage in ProcessorBind.h files.
[mirror_edk2.git] / MdePkg / Include / X64 / ProcessorBind.h
index 9310f9f334a65ab025472b396bbe15f72fac905b..fd4a91922bddadfc2532e79e8c5026c7b98a0e47 100644 (file)
@@ -397,14 +397,19 @@ typedef INT64   INTN;
 #endif\r
 \r
 //\r
-// For symbol name in GNU assembly code, an extra "_" is necessary\r
+// Macros for GNU assembly code\r
 //\r
 #if defined(__GNUC__)\r
   #if defined(linux)\r
     #define ASM_PFX(name) name\r
   #else\r
     #define ASM_PFX(name) _##name\r
-  #endif  \r
+  #endif \r
+  ///\r
+  /// For GNU assembly code, .global or .globl can declare global symbols.\r
+  /// Define this macro to unify the usage.\r
+  ///\r
+  #define ASM_GLOBAL .globl\r
 #endif\r
 \r
 /**\r