summaryrefslogtreecommitdiffstats
path: root/iwyu-add-cstdint-for-int-types-in-s2cellid.patch
diff options
context:
space:
mode:
Diffstat (limited to 'iwyu-add-cstdint-for-int-types-in-s2cellid.patch')
-rw-r--r--iwyu-add-cstdint-for-int-types-in-s2cellid.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/iwyu-add-cstdint-for-int-types-in-s2cellid.patch b/iwyu-add-cstdint-for-int-types-in-s2cellid.patch
new file mode 100644
index 0000000..4941b56
--- /dev/null
+++ b/iwyu-add-cstdint-for-int-types-in-s2cellid.patch
@@ -0,0 +1,40 @@
+From dbb0a49610aa491c5eaa1461342485721c37354c Mon Sep 17 00:00:00 2001
+From: Stephan Hartmann <stha09@googlemail.com>
+Date: Fri, 14 Apr 2023 05:29:45 +0000
+Subject: [PATCH] IWYU: add cstdint for int types in s2cellid
+
+Bug: 957519
+Change-Id: I65ad411c605baeaeda3addfd07ea9b565179368b
+Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4418467
+Commit-Queue: Stephan Hartmann <stha09@googlemail.com>
+Reviewed-by: Andrew Moylan <amoylan@chromium.org>
+Cr-Commit-Position: refs/heads/main@{#1130286}
+---
+ third_party/s2cellid/README.chromium | 1 +
+ third_party/s2cellid/src/s2/util/math/vector.h | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/third_party/s2cellid/README.chromium b/third_party/s2cellid/README.chromium
+index 53c42f7342d..25044e85135 100644
+--- a/third_party/s2cellid/README.chromium
++++ b/third_party/s2cellid/README.chromium
+@@ -18,6 +18,7 @@ Local Modifications:
+ - mathutil.h mathutil.cc
+ - vector.h
+ - Change comparison operator implementations to be C++20-compliant
++ - add missing cstdint include
+ - _fpcontractoff.h
+ - r1interval.h
+ - r2.h
+diff --git a/third_party/s2cellid/src/s2/util/math/vector.h b/third_party/s2cellid/src/s2/util/math/vector.h
+index ded669c1d71..487edc3f93b 100644
+--- a/third_party/s2cellid/src/s2/util/math/vector.h
++++ b/third_party/s2cellid/src/s2/util/math/vector.h
+@@ -22,6 +22,7 @@
+
+ #include <algorithm>
+ #include <cmath>
++#include <cstdint>
+ #include <cstdlib>
+ #include <iosfwd>
+ #include <iostream> // NOLINT(readability/streams)