summaryrefslogtreecommitdiff
path: root/dev-util/android-tools/files/android-tools-8.1.0_p1-build.patch
blob: f3d664ef70a3ee1fbb4de8c2b78817eade2789fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- a/adb/sysdeps.h
+++ b/adb/sysdeps.h
@@ -66,6 +66,11 @@
 #endif
 #endif
 
+#ifndef __clang__
+#define _Nonnull
+#define _Nullable
+#endif
+
 #ifdef _WIN32
 
 // Clang-only nullability specifiers
--- a/libcutils/include/cutils/trace.h
+++ b/libcutils/include/cutils/trace.h
@@ -18,7 +18,13 @@
 #define _LIBS_CUTILS_TRACE_H
 
 #include <inttypes.h>
+// https://gcc.gnu.org/PR60932
+#ifdef __cplusplus
+#include <atomic>
+using namespace std;
+#else
 #include <stdatomic.h>
+#endif
 #include <stdbool.h>
 #include <stdint.h>
 #include <stdio.h>