Browse Source
This reverts commit 3da018dde1
.
I can't accept this NDK headers modification due since it introduces
issues for certain programs for unknown reason.
emacs-27
Leonid Plyushch
5 years ago
5 changed files with 17 additions and 92 deletions
@ -1,11 +0,0 @@ |
|||
--- sysroot.orig/usr/include/bits/ioctl.h 2019-07-30 14:11:49.196931147 -0400
|
|||
+++ sysroot/usr/include/bits/ioctl.h 2019-07-30 14:12:44.446936650 -0400
|
|||
@@ -55,7 +55,7 @@
|
|||
* - defining BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD, which will make the |
|||
* overloading go away. |
|||
*/ |
|||
-#if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD)
|
|||
+#if !defined(BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD) && defined(__clang__)
|
|||
/* enable_if(1) just exists to break overloading ties. */ |
|||
int ioctl(int __fd, unsigned __request, ...) __overloadable __enable_if(1, "") __RENAME(ioctl); |
|||
#endif |
@ -1,11 +0,0 @@ |
|||
--- sysroot.orig/usr/include/string.h 2019-07-30 14:11:49.196931147 -0400
|
|||
+++ sysroot/usr/include/string.h 2019-07-30 14:12:44.446936650 -0400
|
|||
@@ -188,7 +188,7 @@
|
|||
#endif |
|||
|
|||
/* Const-correct overloads. Placed after FORTIFY so we call those functions, if possible. */ |
|||
-#if defined(__cplusplus)
|
|||
+#if defined(__cplusplus) && defined(__clang__)
|
|||
/* |
|||
* Use two enable_ifs so these overloads don't conflict with + are preferred over libcxx's. This can |
|||
* be reduced to 1 after libcxx recognizes that we have const-correct overloads. |
Loading…
Reference in new issue