Merge "Remove __static_cast macro from <sys/cdefs.h>."
This commit is contained in:
commit
18af5bfa5d
1 changed files with 4 additions and 8 deletions
|
@ -40,7 +40,6 @@
|
||||||
/*
|
/*
|
||||||
* Testing against Clang-specific extensions.
|
* Testing against Clang-specific extensions.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __has_extension
|
#ifndef __has_extension
|
||||||
#define __has_extension __has_feature
|
#define __has_extension __has_feature
|
||||||
#endif
|
#endif
|
||||||
|
@ -57,19 +56,16 @@
|
||||||
#define __has_attribute(x) 0
|
#define __has_attribute(x) 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define __strong_alias(alias, sym) \
|
#define __strong_alias(alias, sym) \
|
||||||
__asm__(".global " #alias "\n" \
|
__asm__(".global " #alias "\n" \
|
||||||
#alias " = " #sym);
|
#alias " = " #sym);
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
#define __BEGIN_DECLS extern "C" {
|
#define __BEGIN_DECLS extern "C" {
|
||||||
#define __END_DECLS }
|
#define __END_DECLS }
|
||||||
#define __static_cast(x,y) static_cast<x>(y)
|
|
||||||
#else
|
#else
|
||||||
#define __BEGIN_DECLS
|
#define __BEGIN_DECLS
|
||||||
#define __END_DECLS
|
#define __END_DECLS
|
||||||
#define __static_cast(x,y) (x)y
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(__cplusplus)
|
#if defined(__cplusplus)
|
||||||
|
|
Loading…
Reference in a new issue