summaryrefslogtreecommitdiff
path: root/meta-openembedded/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/debian/Nonnull.patch
blob: 8d1408a48e0c2d6f6399ec653753a70c261a5d2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Bring Clang's _Nonnull keyword to GCC
Author: Kai-Chung Yan
Forwarded: not-needed
--- a/system/core/adb/sysdeps.h
+++ b/system/core/adb/sysdeps.h
@@ -40,11 +40,12 @@
 #include "sysdeps/network.h"
 #include "sysdeps/stat.h"
 
+#define _Nonnull
+#define _Nullable
+
 #ifdef _WIN32
 
 // Clang-only nullability specifiers
-#define _Nonnull
-#define _Nullable
 
 #include <ctype.h>
 #include <direct.h>