aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/android-tools/android-tools/Nonnull.patch
blob: 28747feb308355b39834c5c3c5cc6268d9e3b7fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Description: Bring Clang's _Nonnull keyword to GCC
Author: Kai-Chung Yan
--- a/adb/sysdeps.h
+++ b/adb/sysdeps.h
@@ -66,11 +66,12 @@
 #endif
 #endif
 
+#define _Nonnull
+#define _Nullable
+
 #ifdef _WIN32
 
 // Clang-only nullability specifiers
-#define _Nonnull
-#define _Nullable
 
 #include <ctype.h>
 #include <direct.h>