Debian Codegraph @

.github/actions/proj-install-dep/add-missing-cstdint-includes.patch

raw
1 From b0b8937c56ced8eb0ffef532b9c691a1a5fc8634 Mon Sep 17 00:00:00 2001
2 From: Sergei Trofimovich <[email protected]>
3 Date: Mon, 14 Nov 2022 08:47:03 +0000
4 Subject: [PATCH] PROJ: add missing <cstdint> includes
5
6 Without the change build fails on upcomig `gcc-13` as:
7
8 In file included from /build/PROJ/src/iso19111/operation/conversion.cpp:58:
9 src/proj_json_streaming_writer.hpp:42:14:
10 error: 'int64_t' in namespace 'std' does not name a type
11 42 | typedef std::int64_t GIntBig;
12 | ^~~~~~~
13
14 gcc-13 cleaned it's header dependencies and that exposes these failures.
15
16 Signed-off-by: Mathieu Westphal <[email protected]>
17 ---
18 src/proj_json_streaming_writer.hpp | 1 +
19 src/projections/s2.cpp | 1 +
20 2 files changed, 2 insertions(+)
21
22 diff --git a/src/proj_json_streaming_writer.hpp b/src/proj_json_streaming_writer.hpp
23 index 62676842..163da430 100644
24 --- a/src/proj_json_streaming_writer.hpp
25 +++ b/src/proj_json_streaming_writer.hpp
26 @@ -33,6 +33,7 @@
27
28 #include <vector>
29 #include <string>
30 +#include <cstdint>
31
32 #define CPL_DLL
33
34 diff --git a/src/projections/s2.cpp b/src/projections/s2.cpp
35 index 4a98897b..efce0289 100644
36 --- a/src/projections/s2.cpp
37 +++ b/src/projections/s2.cpp
38 @@ -58,6 +58,7 @@
39
40 #include <errno.h>
41 #include <cmath>
42 +#include <cstdint>
43
44 #include "proj.h"
45 #include "proj_internal.h"
46 --
47 2.53.0
48