Skip to content

Commit

Permalink
patches/adb: Combine similar patch to workaround nullability specifier
Browse files Browse the repository at this point in the history
  • Loading branch information
Biswa96 committed Aug 10, 2024
1 parent ef6b4ad commit 2ad61df
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 51 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,27 @@ Subject: [PATCH] Define clang-only nullability specifiers when __clang__ is
not defined

---
sysdeps.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
adb_mdns.h | 6 ++++++
sysdeps.h | 6 ++++++
2 files changed, 12 insertions(+)

diff --git a/adb_mdns.h b/adb_mdns.h
index a015f53..0e8fc4e 100644
--- a/adb_mdns.h
+++ b/adb_mdns.h
@@ -21,6 +21,12 @@
#include <string>
#include <string_view>

+// Clang-only nullability specifiers
+#ifndef __clang__
+#define _Nonnull
+#define _Nullable
+#endif
+
// The rules for Service Names [RFC6335] state that they may be no more
// than fifteen characters long (not counting the mandatory underscore),
// consisting of only letters, digits, and hyphens, must begin and end
diff --git a/sysdeps.h b/sysdeps.h
index 5ba85b4d..2115a32b 100644
--- a/sysdeps.h
Expand Down
49 changes: 0 additions & 49 deletions patches/adb/0019-adb_mdns-Don-t-use-_Nonnull.patch

This file was deleted.

0 comments on commit 2ad61df

Please sign in to comment.