From 4b79797eeadc83a9ce1df5efe99d1f1248bbc887 Mon Sep 17 00:00:00 2001 From: qwang12 Date: Sat, 23 Aug 2008 09:31:51 +0000 Subject: 1) Cleanup for GCC and ICC tool-chain. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5718 6f19259b-4bc3-4df7-8a09-765794883524 --- EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h | 6 +++++- EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h | 8 ++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'EdkCompatibilityPkg/Foundation/Include') diff --git a/EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h b/EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h index 61614355a8..6b102c3043 100644 --- a/EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h +++ b/EdkCompatibilityPkg/Foundation/Include/Ia32/EfiBind.h @@ -299,7 +299,11 @@ typedef int32_t intn_t; // For symbol name in GNU assembly code, an extra "_" is necessary // #if __GNUC__ - #define ASM_PFX(name) _##name + #if defined(linux) + #define ASM_PFX(name) name + #else + #define ASM_PFX(name) _##name + #endif #endif #endif diff --git a/EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h b/EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h index 19570c82b2..75ccf10511 100644 --- a/EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h +++ b/EdkCompatibilityPkg/Foundation/Include/X64/EfiBind.h @@ -1,6 +1,6 @@ /*++ -Copyright (c) 2005 - 2007, Intel Corporation +Copyright (c) 2005 - 2008, Intel Corporation All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -252,7 +252,11 @@ typedef int64_t intn_t; // For symbol name in GNU assembly code, an extra "_" is necessary // #if __GNUC__ - #define ASM_PFX(name) _##name + #if defined(linux) + #define ASM_PFX(name) name + #else + #define ASM_PFX(name) _##name + #endif #endif #endif -- cgit v1.2.3