mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 19:27:42 +01:00
build: Append __ after __attribute and __typeof keywords
Be consistent with other usages in the code base.
This commit is contained in:
parent
7389fe8d24
commit
6a71b24b63
@ -37,11 +37,11 @@
|
|||||||
# if __has_attribute(symver)
|
# if __has_attribute(symver)
|
||||||
/* The symver attribute is supported since gcc 10.x. */
|
/* The symver attribute is supported since gcc 10.x. */
|
||||||
#define libbsd_symver_default(alias, symbol, version) \
|
#define libbsd_symver_default(alias, symbol, version) \
|
||||||
extern __typeof(symbol) symbol \
|
extern __typeof__(symbol) symbol \
|
||||||
__attribute((__symver__(#alias "@@" #version)))
|
__attribute__((__symver__(#alias "@@" #version)))
|
||||||
#define libbsd_symver_variant(alias, symbol, version) \
|
#define libbsd_symver_variant(alias, symbol, version) \
|
||||||
extern __typeof(symbol) symbol \
|
extern __typeof__(symbol) symbol \
|
||||||
__attribute((__symver__(#alias "@" #version)))
|
__attribute__((__symver__(#alias "@" #version)))
|
||||||
# else
|
# else
|
||||||
#define libbsd_symver_default(alias, symbol, version) \
|
#define libbsd_symver_default(alias, symbol, version) \
|
||||||
__asm__(".symver " #symbol "," #alias "@@" #version)
|
__asm__(".symver " #symbol "," #alias "@@" #version)
|
||||||
@ -51,7 +51,7 @@
|
|||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
#define libbsd_symver_default(alias, symbol, version) \
|
#define libbsd_symver_default(alias, symbol, version) \
|
||||||
extern __typeof(symbol) alias __attribute__((__alias__(#symbol)))
|
extern __typeof__(symbol) alias __attribute__((__alias__(#symbol)))
|
||||||
|
|
||||||
#define libbsd_symver_variant(alias, symbol, version)
|
#define libbsd_symver_variant(alias, symbol, version)
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user