Merge "Remove __static_cast macro from <sys/cdefs.h>."

This commit is contained in:
Treehugger Robot 2016-08-10 23:58:11 +00:00 committed by Gerrit Code Review
commit 18af5bfa5d

View file

@ -40,7 +40,6 @@
/*
* Testing against Clang-specific extensions.
*/
#ifndef __has_extension
#define __has_extension __has_feature
#endif
@ -57,7 +56,6 @@
#define __has_attribute(x) 0
#endif
#define __strong_alias(alias, sym) \
__asm__(".global " #alias "\n" \
#alias " = " #sym);
@ -65,11 +63,9 @@
#if defined(__cplusplus)
#define __BEGIN_DECLS extern "C" {
#define __END_DECLS }
#define __static_cast(x,y) static_cast<x>(y)
#else
#define __BEGIN_DECLS
#define __END_DECLS
#define __static_cast(x,y) (x)y
#endif
#if defined(__cplusplus)