From 7cd5c6292b3aa1078053262acec1e76fc525a651 Mon Sep 17 00:00:00 2001 From: krande Date: Tue, 1 Nov 2022 08:38:37 +0100 Subject: [PATCH] fix: add conditional #include for certain files breaking with boost v1.78+ --- src/ifcconvert/IfcConvert.cpp | 4 ++++ src/ifcgeom/IfcGeom.cpp | 4 ++++ src/ifcgeom/IfcGeom.h | 4 ++++ src/ifcgeom/IfcGeomIteratorImplementation.cpp | 4 ++++ src/ifcgeom/IfcGeomIteratorImplementation.h | 4 ++++ src/ifcgeom/faceset_helper.cpp | 4 ++++ src/ifcgeom_schema_agnostic/boolean_utils.cpp | 4 ++++ src/ifcgeom_schema_agnostic/boolean_utils.h | 4 ++++ src/ifcgeom_schema_agnostic/wire_utils.cpp | 4 ++++ src/ifcgeom_schema_agnostic/wire_utils.h | 4 ++++ 10 files changed, 40 insertions(+) diff --git a/src/ifcconvert/IfcConvert.cpp b/src/ifcconvert/IfcConvert.cpp index 8fcf97662d..f2e04f822b 100644 --- a/src/ifcconvert/IfcConvert.cpp +++ b/src/ifcconvert/IfcConvert.cpp @@ -26,6 +26,10 @@ * * ********************************************************************************/ +#ifdef _MSC_VER +#include +#endif + #include "../serializers/ColladaSerializer.h" #include "../serializers/GltfSerializer.h" #include "../serializers/HdfSerializer.h" diff --git a/src/ifcgeom/IfcGeom.cpp b/src/ifcgeom/IfcGeom.cpp index 6bc8a8389f..ba366bd84f 100644 --- a/src/ifcgeom/IfcGeom.cpp +++ b/src/ifcgeom/IfcGeom.cpp @@ -27,6 +27,10 @@ #include #include +#ifdef _MSC_VER +#include +#endif + #include #include diff --git a/src/ifcgeom/IfcGeom.h b/src/ifcgeom/IfcGeom.h index ddc02374eb..f27979c4dc 100644 --- a/src/ifcgeom/IfcGeom.h +++ b/src/ifcgeom/IfcGeom.h @@ -17,6 +17,10 @@ * * ********************************************************************************/ +#ifdef _MSC_VER +#include +#endif + #ifndef IFCGEOM_H #define IFCGEOM_H diff --git a/src/ifcgeom/IfcGeomIteratorImplementation.cpp b/src/ifcgeom/IfcGeomIteratorImplementation.cpp index b7e80bff65..30bb162eef 100644 --- a/src/ifcgeom/IfcGeomIteratorImplementation.cpp +++ b/src/ifcgeom/IfcGeomIteratorImplementation.cpp @@ -1,3 +1,7 @@ +#ifdef _MSC_VER +#include +#endif + #include "IfcGeomIteratorImplementation.h" #include "../ifcgeom_schema_agnostic/IteratorImplementation.h" diff --git a/src/ifcgeom/IfcGeomIteratorImplementation.h b/src/ifcgeom/IfcGeomIteratorImplementation.h index 7746fa13f9..aa8a4e93bc 100644 --- a/src/ifcgeom/IfcGeomIteratorImplementation.h +++ b/src/ifcgeom/IfcGeomIteratorImplementation.h @@ -58,6 +58,10 @@ #ifndef IFCGEOMITERATOR_H #define IFCGEOMITERATOR_H +#ifdef _MSC_VER +#include +#endif + #include #include #include diff --git a/src/ifcgeom/faceset_helper.cpp b/src/ifcgeom/faceset_helper.cpp index 56d69ba7ee..1ecf9b45be 100644 --- a/src/ifcgeom/faceset_helper.cpp +++ b/src/ifcgeom/faceset_helper.cpp @@ -1,3 +1,7 @@ +#ifdef _MSC_VER +#include +#endif + #include "IfcGeom.h" #include "../ifcgeom_schema_agnostic/IfcGeomTree.h" diff --git a/src/ifcgeom_schema_agnostic/boolean_utils.cpp b/src/ifcgeom_schema_agnostic/boolean_utils.cpp index 38d2a06f72..e683566593 100644 --- a/src/ifcgeom_schema_agnostic/boolean_utils.cpp +++ b/src/ifcgeom_schema_agnostic/boolean_utils.cpp @@ -1,3 +1,7 @@ +#ifdef _MSC_VER +#include +#endif + #include "boolean_utils.h" #include "../ifcgeom_schema_agnostic/IfcGeomTree.h" diff --git a/src/ifcgeom_schema_agnostic/boolean_utils.h b/src/ifcgeom_schema_agnostic/boolean_utils.h index 31cc9ed4f2..cc4fcee841 100644 --- a/src/ifcgeom_schema_agnostic/boolean_utils.h +++ b/src/ifcgeom_schema_agnostic/boolean_utils.h @@ -20,6 +20,10 @@ #ifndef BOOLEAN_UTILS_H #define BOOLEAN_UTILS_H +#ifdef _MSC_VER +#include +#endif + #include #include #include diff --git a/src/ifcgeom_schema_agnostic/wire_utils.cpp b/src/ifcgeom_schema_agnostic/wire_utils.cpp index 5c53233012..5287ecc4d5 100644 --- a/src/ifcgeom_schema_agnostic/wire_utils.cpp +++ b/src/ifcgeom_schema_agnostic/wire_utils.cpp @@ -1,3 +1,7 @@ +#ifdef _MSC_VER +#include +#endif + #include "wire_utils.h" #include "../ifcparse/IfcLogger.h" diff --git a/src/ifcgeom_schema_agnostic/wire_utils.h b/src/ifcgeom_schema_agnostic/wire_utils.h index 3d905a7338..8d865c244d 100644 --- a/src/ifcgeom_schema_agnostic/wire_utils.h +++ b/src/ifcgeom_schema_agnostic/wire_utils.h @@ -1,3 +1,7 @@ +#ifdef _MSC_VER +#include +#endif + #include #include #include