Skip to content

Commit

Permalink
Update patch to check for clang rather than Apple.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonsimantov committed Mar 8, 2024
1 parent 408c824 commit d676b18
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmake/external/abseil-cpp.patch.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
diff --git a/absl/meta/type_traits.h b/absl/meta/type_traits.h
index d886cb30..de0ebda2 100644
index d886cb30..84c01e19 100644
--- a/absl/meta/type_traits.h
+++ b/absl/meta/type_traits.h
@@ -35,6 +35,12 @@
#ifndef ABSL_META_TYPE_TRAITS_H_
#define ABSL_META_TYPE_TRAITS_H_

+// Added by firestore-ios-sdk/cmake/external/abseil-cpp.patch.txt.
+#if __APPLE__
+#if __clang__
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated"
+#endif // __APPLE__
+#endif // __clang__
+
#include <cstddef>
#include <functional>
Expand All @@ -20,8 +20,8 @@ index d886cb30..de0ebda2 100644
} // namespace absl

+// Added by firestore-ios-sdk/cmake/external/abseil-cpp.patch.txt.
+#if __APPLE__
+#if __clang__
+#pragma clang diagnostic pop
+#endif // __APPLE__
+#endif // __clang__
+
#endif // ABSL_META_TYPE_TRAITS_H_

0 comments on commit d676b18

Please sign in to comment.