diff options
Diffstat (limited to 'meta-oe/recipes-devtools/android-tools/android-tools/Nonnull.patch')
-rw-r--r-- | meta-oe/recipes-devtools/android-tools/android-tools/Nonnull.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/android-tools/android-tools/Nonnull.patch b/meta-oe/recipes-devtools/android-tools/android-tools/Nonnull.patch new file mode 100644 index 00000000000..28747feb308 --- /dev/null +++ b/meta-oe/recipes-devtools/android-tools/android-tools/Nonnull.patch @@ -0,0 +1,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> |