Patrick Williams | b9af875 | 2023-01-30 13:28:01 -0600 | [diff] [blame^] | 1 | From 11b9ef265a942cb3fdd373520d0c3fce67d3cdf9 Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 26 Jan 2023 18:05:33 -0800 |
| 4 | Subject: [PATCH] include missing <cstdint> |
| 5 | |
| 6 | gcc 13 moved some includes around and as a result <cstdint> is no longer transitively included [1]. Explicitly include it for uint{32,64}_t. |
| 7 | |
| 8 | [1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes |
| 9 | |
| 10 | Upstream-Status: Backport [https://github.com/kraj/geos/commit/0e8d4368b] |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | include/geos/geomgraph/TopologyLocation.h | 1 + |
| 14 | include/geos/io/WKTWriter.h | 1 + |
| 15 | include/geos/shape/fractal/HilbertCode.h | 1 + |
| 16 | include/geos/shape/fractal/HilbertEncoder.h | 1 + |
| 17 | include/geos/shape/fractal/MortonCode.h | 1 + |
| 18 | 5 files changed, 5 insertions(+) |
| 19 | |
| 20 | diff --git a/include/geos/geomgraph/TopologyLocation.h b/include/geos/geomgraph/TopologyLocation.h |
| 21 | index 4cbbacb3..a3ecd212 100644 |
| 22 | --- a/include/geos/geomgraph/TopologyLocation.h |
| 23 | +++ b/include/geos/geomgraph/TopologyLocation.h |
| 24 | @@ -25,6 +25,7 @@ |
| 25 | #include <geos/inline.h> |
| 26 | #include <geos/geom/Location.h> |
| 27 | |
| 28 | +#include <cstdint> |
| 29 | #include <vector> |
| 30 | #include <array> |
| 31 | #include <string> |
| 32 | diff --git a/include/geos/io/WKTWriter.h b/include/geos/io/WKTWriter.h |
| 33 | index c0af8e71..0d60e975 100644 |
| 34 | --- a/include/geos/io/WKTWriter.h |
| 35 | +++ b/include/geos/io/WKTWriter.h |
| 36 | @@ -25,6 +25,7 @@ |
| 37 | |
| 38 | #include <string> |
| 39 | #include <cctype> |
| 40 | +#include <cstdint> |
| 41 | |
| 42 | #ifdef _MSC_VER |
| 43 | #pragma warning(push) |
| 44 | diff --git a/include/geos/shape/fractal/HilbertCode.h b/include/geos/shape/fractal/HilbertCode.h |
| 45 | index 46012efc..beeb28c6 100644 |
| 46 | --- a/include/geos/shape/fractal/HilbertCode.h |
| 47 | +++ b/include/geos/shape/fractal/HilbertCode.h |
| 48 | @@ -17,6 +17,7 @@ |
| 49 | |
| 50 | #include <geos/export.h> |
| 51 | #include <string> |
| 52 | +#include <cstdint> |
| 53 | |
| 54 | // Forward declarations |
| 55 | namespace geos { |
| 56 | diff --git a/include/geos/shape/fractal/HilbertEncoder.h b/include/geos/shape/fractal/HilbertEncoder.h |
| 57 | index 61c0010d..0126d3d9 100644 |
| 58 | --- a/include/geos/shape/fractal/HilbertEncoder.h |
| 59 | +++ b/include/geos/shape/fractal/HilbertEncoder.h |
| 60 | @@ -16,6 +16,7 @@ |
| 61 | #pragma once |
| 62 | |
| 63 | #include <geos/export.h> |
| 64 | +#include <cstdint> |
| 65 | #include <string> |
| 66 | #include <vector> |
| 67 | |
| 68 | diff --git a/include/geos/shape/fractal/MortonCode.h b/include/geos/shape/fractal/MortonCode.h |
| 69 | index 6743f87c..ad4a42e7 100644 |
| 70 | --- a/include/geos/shape/fractal/MortonCode.h |
| 71 | +++ b/include/geos/shape/fractal/MortonCode.h |
| 72 | @@ -17,6 +17,7 @@ |
| 73 | |
| 74 | #include <geos/export.h> |
| 75 | #include <string> |
| 76 | +#include <cstdint> |
| 77 | |
| 78 | // Forward declarations |
| 79 | namespace geos { |
| 80 | -- |
| 81 | 2.39.1 |
| 82 | |