OSDN Git Service

Remove __static_cast macro from <sys/cdefs.h>.
authorElliott Hughes <enh@google.com>
Wed, 10 Aug 2016 21:18:01 +0000 (14:18 -0700)
committerElliott Hughes <enh@google.com>
Wed, 10 Aug 2016 21:18:01 +0000 (14:18 -0700)
We don't use it, and we added the more general __BIONIC_CAST anyway.

Change-Id: I2cb8a108b58bb2cb24ed2b1890d9efed671196dc

libc/include/sys/cdefs.h

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