Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/cdefs.h
Show First 20 Lines • Show All 560 Lines • ▼ Show 20 Lines | |||||
#define __sym_default(impl,sym,verid) \ | #define __sym_default(impl,sym,verid) \ | ||||
__asm__(".symver impl, sym@@@verid") | __asm__(".symver impl, sym@@@verid") | ||||
#endif /* __STDC__ */ | #endif /* __STDC__ */ | ||||
#endif /* __GNUC__ */ | #endif /* __GNUC__ */ | ||||
#define __GLOBL1(sym) __asm__(".globl " #sym) | #define __GLOBL1(sym) __asm__(".globl " #sym) | ||||
#define __GLOBL(sym) __GLOBL1(sym) | #define __GLOBL(sym) __GLOBL1(sym) | ||||
#define __WEAK1(sym) __asm__(".weak " #sym) | |||||
#define __WEAK(sym) __WEAK1(sym) | |||||
arichardson: I think this should be sufficient. | |||||
#if defined(__GNUC__) | #if defined(__GNUC__) | ||||
#define __IDSTRING(name,string) __asm__(".ident\t\"" string "\"") | #define __IDSTRING(name,string) __asm__(".ident\t\"" string "\"") | ||||
#else | #else | ||||
/* | /* | ||||
* The following definition might not work well if used in header files, | * The following definition might not work well if used in header files, | ||||
* but it should be better than nothing. If you want a "do nothing" | * but it should be better than nothing. If you want a "do nothing" | ||||
* version, then it should generate some harmless declaration, such as: | * version, then it should generate some harmless declaration, such as: | ||||
* #define __IDSTRING(name,string) struct __hack | * #define __IDSTRING(name,string) struct __hack | ||||
▲ Show 20 Lines • Show All 325 Lines • Show Last 20 Lines |
I think this should be sufficient.