Skip to content

Commit

Permalink
Add missing <cstdint> includes for gcc-13 (libgeos#743)
Browse files Browse the repository at this point in the history
Without the change build on `gcc-13` fails as:

    geos/include/geos/geomgraph/TopologyLocation.h:143:52: error: 'uint32_t' has not been declared
      143 |     bool isEqualOnSide(const TopologyLocation& le, uint32_t locIndex) const
          |                                                    ^~~~~~~~
  • Loading branch information
trofi authored Nov 29, 2022
1 parent d210a94 commit 0e8d436
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/geos/geomgraph/Depth.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <geos/geom/Location.h>
#include <geos/geom/Position.h>
#include <string>
#include <cstdint>

// Forward declarations
namespace geos {
Expand Down
1 change: 1 addition & 0 deletions include/geos/geomgraph/TopologyLocation.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <array>
#include <string>
#include <cassert>
#include <cstdint>

#ifdef _MSC_VER
#pragma warning(push)
Expand Down
1 change: 1 addition & 0 deletions include/geos/io/WKTWriter.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@

#include <string>
#include <cctype>
#include <cstdint>

#ifdef _MSC_VER
#pragma warning(push)
Expand Down
2 changes: 2 additions & 0 deletions include/geos/operation/overlayng/OverlayLabel.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

#pragma once

#include <cstdint>

#include <geos/geom/Location.h>
#include <geos/geom/Position.h>
#include <geos/export.h>
Expand Down
1 change: 1 addition & 0 deletions include/geos/shape/fractal/HilbertCode.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include <geos/export.h>
#include <string>
#include <cstdint>

// Forward declarations
namespace geos {
Expand Down
1 change: 1 addition & 0 deletions include/geos/shape/fractal/MortonCode.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

#include <geos/export.h>
#include <string>
#include <cstdint>

// Forward declarations
namespace geos {
Expand Down

0 comments on commit 0e8d436

Please sign in to comment.