Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/cdefs.h
Show First 20 Lines • Show All 557 Lines • ▼ Show 20 Lines | #define __warn_references(sym,msg) \ | ||||
__asm__(".previous") | __asm__(".previous") | ||||
#define __sym_compat(sym,impl,verid) \ | #define __sym_compat(sym,impl,verid) \ | ||||
__asm__(".symver impl, sym@verid") | __asm__(".symver impl, sym@verid") | ||||
#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 __GLOBL(sym) __asm__(".globl " __XSTRING(sym)) | ||||
#define __GLOBL(sym) __GLOBL1(sym) | #define __WEAK(sym) __asm__(".weak " __XSTRING(sym)) | ||||
#if defined(__GNUC__) | #if defined(__GNUC__) | ||||
#define __IDSTRING(name,string) __asm__(".ident\t\"" string "\"") | #define __IDSTRING(name,string) __asm__(".ident\t\"" string "\"") | ||||
#else | #else | ||||
arichardson: I think this should be sufficient. | |||||
/* | /* | ||||
* 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 | ||||
*/ | */ | ||||
#define __IDSTRING(name,string) static const char name[] __unused = string | #define __IDSTRING(name,string) static const char name[] __unused = string | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 322 Lines • Show Last 20 Lines |
I think this should be sufficient.