redefine the ASM_PFX to let it can work on Apple/NetBSD and other Unix* platform.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9074 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d4cf6b6c97
commit
c113cd3272
|
@ -310,11 +310,18 @@ typedef int32_t intn_t;
|
||||||
// For symbol name in GNU assembly code, an extra "_" is necessary
|
// For symbol name in GNU assembly code, an extra "_" is necessary
|
||||||
//
|
//
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
#if defined(linux)
|
///
|
||||||
#define ASM_PFX(name) name
|
/// Private worker functions for ASM_PFX()
|
||||||
#else
|
///
|
||||||
#define ASM_PFX(name) _##name
|
#define _CONCATENATE(a, b) __CONCATENATE(a, b)
|
||||||
#endif
|
#define __CONCATENATE(a, b) a ## b
|
||||||
|
|
||||||
|
///
|
||||||
|
/// The __USER_LABEL_PREFIX__ macro predefined by GNUC represents the prefix
|
||||||
|
/// on symbols in assembly language.
|
||||||
|
///
|
||||||
|
#define ASM_PFX(name) _CONCATENATE (__USER_LABEL_PREFIX__, name)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -262,11 +262,18 @@ typedef int64_t intn_t;
|
||||||
// For symbol name in GNU assembly code, an extra "_" is necessary
|
// For symbol name in GNU assembly code, an extra "_" is necessary
|
||||||
//
|
//
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
#if defined(linux)
|
///
|
||||||
#define ASM_PFX(name) name
|
/// Private worker functions for ASM_PFX()
|
||||||
#else
|
///
|
||||||
#define ASM_PFX(name) _##name
|
#define _CONCATENATE(a, b) __CONCATENATE(a, b)
|
||||||
#endif
|
#define __CONCATENATE(a, b) a ## b
|
||||||
|
|
||||||
|
///
|
||||||
|
/// The __USER_LABEL_PREFIX__ macro predefined by GNUC represents the prefix
|
||||||
|
/// on symbols in assembly language.
|
||||||
|
///
|
||||||
|
#define ASM_PFX(name) _CONCATENATE (__USER_LABEL_PREFIX__, name)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue