diff --git a/src/ifcgeom/kernels/opencascade/IfcGeomTree.h b/src/ifcgeom/kernels/opencascade/IfcGeomTree.h index 46e0f06731..aa5ae456a4 100644 --- a/src/ifcgeom/kernels/opencascade/IfcGeomTree.h +++ b/src/ifcgeom/kernels/opencascade/IfcGeomTree.h @@ -48,6 +48,7 @@ #include #include #include +#include #include #include #include diff --git a/src/ifcgeom/kernels/opencascade/clash_utils.cpp b/src/ifcgeom/kernels/opencascade/clash_utils.cpp index d6050bf87c..cfc7687b73 100644 --- a/src/ifcgeom/kernels/opencascade/clash_utils.cpp +++ b/src/ifcgeom/kernels/opencascade/clash_utils.cpp @@ -1,5 +1,7 @@ #include "clash_utils.h" #include +#include +#include #define GU_CULLING_EPSILON_RAY_TRIANGLE FLT_EPSILON*FLT_EPSILON #define PX_MAX_F32 3.4028234663852885981170418348452e+38F diff --git a/src/ifcgeom/mapping/mapping.h b/src/ifcgeom/mapping/mapping.h index 054e0a7efc..a9fe31999b 100644 --- a/src/ifcgeom/mapping/mapping.h +++ b/src/ifcgeom/mapping/mapping.h @@ -7,6 +7,7 @@ #include "../../ifcparse/IfcLogger.h" #include +#include #define INCLUDE_SCHEMA(x) STRINGIFY(../../ifcparse/x.h) #include INCLUDE_SCHEMA(IfcSchema) diff --git a/src/ifcgeom/taxonomy.h b/src/ifcgeom/taxonomy.h index c1162eebb0..a1d0c89ad4 100644 --- a/src/ifcgeom/taxonomy.h +++ b/src/ifcgeom/taxonomy.h @@ -17,6 +17,13 @@ #include #include #include +#include +#include +#include +#include +#include +#include +#include #ifndef TAXONOMY_USE_UNIQUE_PTR #ifndef TAXONOMY_USE_NAKED_PTR @@ -1625,19 +1632,19 @@ typedef item const* ptr; // @todo Sad... now that we have templated collection members, // we can't generally use collection_base anymore as a cast target. if (auto s = std::dynamic_pointer_cast(i)) { - visit(s, fn); + ifcopenshell::geometry::visit(s, fn); } else if (auto s = std::dynamic_pointer_cast(i)) { - visit(s, fn); + ifcopenshell::geometry::visit(s, fn); } else if (auto s = std::dynamic_pointer_cast(i)) { - visit(s, fn); + ifcopenshell::geometry::visit(s, fn); } else if (auto s = std::dynamic_pointer_cast(i)) { - visit(s, fn); + ifcopenshell::geometry::visit(s, fn); } else if (auto s = std::dynamic_pointer_cast(i)) { - visit(s, fn); + ifcopenshell::geometry::visit(s, fn); } else if (auto s = std::dynamic_pointer_cast(i)) { - visit(s, fn); + ifcopenshell::geometry::visit(s, fn); } else if (auto s = std::dynamic_pointer_cast(i)) { - visit(s, fn); + ifcopenshell::geometry::visit(s, fn); } else { fn(i); diff --git a/src/ifcparse/IfcBaseClass.h b/src/ifcparse/IfcBaseClass.h index 5cab8289c3..d03e7b284e 100644 --- a/src/ifcparse/IfcBaseClass.h +++ b/src/ifcparse/IfcBaseClass.h @@ -27,6 +27,7 @@ #include "utils.h" #include +#include #include class aggregate_of_instance; diff --git a/src/ifcparse/IfcCharacterDecoder.cpp b/src/ifcparse/IfcCharacterDecoder.cpp index 71685dcedc..c036aa676d 100644 --- a/src/ifcparse/IfcCharacterDecoder.cpp +++ b/src/ifcparse/IfcCharacterDecoder.cpp @@ -201,7 +201,7 @@ namespace { if (character >= 0x20 && character <= 0x7e) { stream.put((char)character); } else { - stream << "\\u" << character; + stream << "\\u" << static_cast(character); } }); return stream.str(); diff --git a/src/ifcparse/IfcEntityInstanceData.h b/src/ifcparse/IfcEntityInstanceData.h index 04e7dcb0ad..f51345a25e 100644 --- a/src/ifcparse/IfcEntityInstanceData.h +++ b/src/ifcparse/IfcEntityInstanceData.h @@ -36,6 +36,9 @@ #endif +#include +#include + #include #include #include diff --git a/src/ifcparse/IfcFile.h b/src/ifcparse/IfcFile.h index 96685a88ee..1092bb5e4f 100644 --- a/src/ifcparse/IfcFile.h +++ b/src/ifcparse/IfcFile.h @@ -34,6 +34,7 @@ #include #include #include +#include #ifdef IFOPSH_WITH_ROCKSDB #include diff --git a/src/ifcparse/IfcSchema.h b/src/ifcparse/IfcSchema.h index 349a81532d..dce8a43348 100644 --- a/src/ifcparse/IfcSchema.h +++ b/src/ifcparse/IfcSchema.h @@ -25,7 +25,9 @@ #include #include #include +#include #include +#include #include #include diff --git a/src/ifcparse/aggregate_of_instance.h b/src/ifcparse/aggregate_of_instance.h index bcce94ce6e..f7e78552b3 100644 --- a/src/ifcparse/aggregate_of_instance.h +++ b/src/ifcparse/aggregate_of_instance.h @@ -26,6 +26,7 @@ #include #include #include +#include namespace IfcParse { class declaration; diff --git a/src/ifcparse/rocksdb_map_adapter.h b/src/ifcparse/rocksdb_map_adapter.h index da2346789f..25d830463b 100644 --- a/src/ifcparse/rocksdb_map_adapter.h +++ b/src/ifcparse/rocksdb_map_adapter.h @@ -30,6 +30,8 @@ #include #include #include +#include +#include template struct is_std_tuple : std::false_type {}; diff --git a/src/ifcparse/storage.h b/src/ifcparse/storage.h index 60378c982e..d0ae6f3cf2 100644 --- a/src/ifcparse/storage.h +++ b/src/ifcparse/storage.h @@ -25,6 +25,8 @@ namespace rocksdb { #include #include +#include +#include #include #include #include diff --git a/src/ifcparse/variantarray.h b/src/ifcparse/variantarray.h index 16e2659564..1b00774bf7 100644 --- a/src/ifcparse/variantarray.h +++ b/src/ifcparse/variantarray.h @@ -33,6 +33,10 @@ variant - which is the maximum size of its constituents - is reduced. #include #include #include +#include +#include +#include +#include #include "IfcException.h" diff --git a/src/serializers/GltfSerializer.cpp b/src/serializers/GltfSerializer.cpp index 3627106f42..55ebb1d52c 100644 --- a/src/serializers/GltfSerializer.cpp +++ b/src/serializers/GltfSerializer.cpp @@ -23,6 +23,8 @@ #include "../ifcparse/utils.h" +#include + #ifdef WITH_PROJ #include #endif diff --git a/src/serializers/HdfSerializer.cpp b/src/serializers/HdfSerializer.cpp index 2fceb0eec0..092413abae 100644 --- a/src/serializers/HdfSerializer.cpp +++ b/src/serializers/HdfSerializer.cpp @@ -34,6 +34,7 @@ #include #include #include +#include #ifdef USE_BINARY #define write_shape write_binary diff --git a/src/serializers/RocksDbSerializer.cpp b/src/serializers/RocksDbSerializer.cpp index f5e95e7a3b..2a6221b670 100644 --- a/src/serializers/RocksDbSerializer.cpp +++ b/src/serializers/RocksDbSerializer.cpp @@ -4,6 +4,9 @@ #include +#include +#include + #include "../ifcparse/IfcLogger.h" RocksDbSerializer::RocksDbSerializer(IfcParse::IfcFile* file, const std::string& rocksdb_filename)