]> git.pld-linux.org Git - packages/gdal.git/blame - gcc11.patch
Release 21 (by relup.sh)
[packages/gdal.git] / gcc11.patch
CommitLineData
f61696cf
JP
1From 7a18e2669a733ebe3544e4f5c735fd4d2ded5fa3 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Timm=20B=C3=A4der?= <tbaeder@redhat.com>
3Date: Thu, 10 Dec 2020 14:02:44 +0100
4Subject: [PATCH] Add some missing <limits> includes
5
6Otherwise, the builds fails with either gcc11 or recent clang.
7---
8 gdal/ogr/ogrsf_frmts/cad/libopencad/cadobjects.cpp | 1 +
9 gdal/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp | 1 +
10 gdal/third_party/LercLib/Lerc2.h | 1 +
11 3 files changed, 3 insertions(+)
12
13diff --git a/gdal/ogr/ogrsf_frmts/cad/libopencad/cadobjects.cpp b/gdal/ogr/ogrsf_frmts/cad/libopencad/cadobjects.cpp
14index f59f7d50e2f5..edff5100e1f4 100644
15--- a/gdal/ogr/ogrsf_frmts/cad/libopencad/cadobjects.cpp
16+++ b/gdal/ogr/ogrsf_frmts/cad/libopencad/cadobjects.cpp
17@@ -31,6 +31,7 @@
18
19 #include "cadobjects.h"
20
21+#include <limits>
22 #include <math.h>
23 #include <algorithm>
24
25diff --git a/gdal/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp b/gdal/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp
26index 83951fd7e7fc..6ae837da6467 100644
27--- a/gdal/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp
28+++ b/gdal/ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp
29@@ -36,6 +36,7 @@
30 #include <cassert>
31 #include <cstring>
32 #include <iostream>
33+#include <limits>
34 #include <memory>
35 #include <string>
36
37diff --git a/gdal/third_party/LercLib/Lerc2.h b/gdal/third_party/LercLib/Lerc2.h
38index feec95529c83..564f928ee672 100644
39--- a/gdal/third_party/LercLib/Lerc2.h
40+++ b/gdal/third_party/LercLib/Lerc2.h
41@@ -27,6 +27,7 @@ Contributors: Thomas Maurer
42 #include <algorithm>
43 #include <cfloat>
44 #include <cmath>
45+#include <limits>
46 #include <string>
47 #include <typeinfo>
48 #include "Defines.h"
This page took 0.037625 seconds and 4 git commands to generate.