summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/selinux/android-tools/android-tools/core-debian/Nonnull.patch
blob: a7e0fa81e7e27fe1cbae5a3c8850c00b7eef32d3 (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/adb/sysdeps.h
+++ b/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>