Skip to content

Commit 60016d6

Browse files
author
Martin Frank Staley
committed
Added #include <cstdint> in several places.
Also needed it in certain autogenerated codes, and thus in the code generator. Experience with another compiler called out this issue. It related to pybind11's using std::foo rather than foo. Which apparently sometimes requires <cstdint>.
1 parent 739185f commit 60016d6

File tree

284 files changed

+290
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

284 files changed

+290
-0
lines changed

autogen/json2class-python.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ void filePythonVersion(const InfoSpecs &specs)
7272
{
7373
writer out(specs.cppPython);
7474
out();
75+
out("#include <cstdint>");
7576
out("#include <pybind11/pybind11.h>");
7677
out("#include <pybind11/stl.h>");
7778
out();
@@ -137,6 +138,7 @@ void filePythonNamespace(const InfoSpecs &specs, const PerNamespace &per)
137138
{
138139
writer out(per.cppPython);
139140
out();
141+
out("#include <cstdint>");
140142
out("#include <pybind11/pybind11.h>");
141143
out("#include <pybind11/stl.h>");
142144
out();
@@ -211,6 +213,7 @@ void filePythonClass(const InfoSpecs &specs, const PerClass &per)
211213

212214
out();
213215
out("// system includes");
216+
out("#include <cstdint>");
214217
out("#include <pybind11/pybind11.h>");
215218
out("#include <pybind11/stl.h>");
216219

python/src/core/Node.python.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
// For e.g. uint32_t, which is used in pybind11.h. A recent attempted build
3+
// with g++ reported that std::uint32_t wasn't a known type, which suggests
4+
// that pybind11.h doesn't #include everything it should.
5+
#include <cstdint>
6+
27
// system includes
38
#include <pybind11/pybind11.h>
49
#include <pybind11/stl.h>

versions/GNDS-v2.0/GNDS/python/src/v2.0.python.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// THIS FILE WAS AUTOGENERATED!
33
// DO NOT MODIFY!
44

5+
#include <cstdint>
56
#include <pybind11/pybind11.h>
67
#include <pybind11/stl.h>
78

versions/GNDS-v2.0/GNDS/python/src/v2.0/g2d.python.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// THIS FILE WAS AUTOGENERATED!
33
// DO NOT MODIFY!
44

5+
#include <cstdint>
56
#include <pybind11/pybind11.h>
67
#include <pybind11/stl.h>
78

versions/GNDS-v2.0/GNDS/python/src/v2.0/g2d/Array.python.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// DO NOT MODIFY!
44

55
// system includes
6+
#include <cstdint>
67
#include <pybind11/pybind11.h>
78
#include <pybind11/stl.h>
89

versions/GNDS-v2.0/GNDS/python/src/v2.0/g3d.python.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// THIS FILE WAS AUTOGENERATED!
33
// DO NOT MODIFY!
44

5+
#include <cstdint>
56
#include <pybind11/pybind11.h>
67
#include <pybind11/stl.h>
78

versions/GNDS-v2.0/GNDS/python/src/v2.0/g3d/Array.python.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// DO NOT MODIFY!
44

55
// system includes
6+
#include <cstdint>
67
#include <pybind11/pybind11.h>
78
#include <pybind11/stl.h>
89

versions/GNDS-v2.0/GNDS/python/src/v2.0/g3d/Lengths.python.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// DO NOT MODIFY!
44

55
// system includes
6+
#include <cstdint>
67
#include <pybind11/pybind11.h>
78
#include <pybind11/stl.h>
89

versions/GNDS-v2.0/GNDS/python/src/v2.0/g3d/Starts.python.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// DO NOT MODIFY!
44

55
// system includes
6+
#include <cstdint>
67
#include <pybind11/pybind11.h>
78
#include <pybind11/stl.h>
89

versions/GNDS-v2.0/GNDS/python/src/v2.0/general.python.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
// THIS FILE WAS AUTOGENERATED!
33
// DO NOT MODIFY!
44

5+
#include <cstdint>
56
#include <pybind11/pybind11.h>
67
#include <pybind11/stl.h>
78

0 commit comments

Comments
 (0)