From c8def0474ebb2a3291d0e3bdcb14d48ebd9c695c Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sat, 3 Aug 2019 16:11:02 +0200 Subject: [PATCH] Update examples --- src/examples/IfcAdvancedHouse.cpp | 11 +++-------- src/examples/IfcOpenHouse.cpp | 13 +++++-------- 2 files changed, 8 insertions(+), 16 deletions(-) diff --git a/src/examples/IfcAdvancedHouse.cpp b/src/examples/IfcAdvancedHouse.cpp index 3de0d52e34..a4d493babd 100644 --- a/src/examples/IfcAdvancedHouse.cpp +++ b/src/examples/IfcAdvancedHouse.cpp @@ -38,17 +38,12 @@ #include -#ifdef USE_IFC4 -#include "../ifcparse/Ifc4.h" -#define IfcSchema Ifc4 -#else -#include "../ifcparse/Ifc2x3.h" #define IfcSchema Ifc2x3 -#endif - +#include "../ifcparse/macros.h" +#include "../ifcparse/Ifc2x3.h" #include "../ifcparse/IfcBaseClass.h" #include "../ifcparse/IfcHierarchyHelper.h" -#include "../ifcgeom/IfcGeom.h" + #include "../ifcgeom/schema_agnostic/Serialization.h" #if USE_VLD diff --git a/src/examples/IfcOpenHouse.cpp b/src/examples/IfcOpenHouse.cpp index b3e0f7f10b..31d46468fd 100644 --- a/src/examples/IfcOpenHouse.cpp +++ b/src/examples/IfcOpenHouse.cpp @@ -33,17 +33,14 @@ #include #include -#ifdef USE_IFC4 -#include "../ifcparse/Ifc4.h" -#define IfcSchema Ifc4 -#else -#include "../ifcparse/Ifc2x3.h" -#define IfcSchema Ifc2x3 -#endif +#include +#define IfcSchema Ifc2x3 +#include "../ifcparse/macros.h" +#include "../ifcparse/Ifc2x3.h" #include "../ifcparse/IfcBaseClass.h" #include "../ifcparse/IfcHierarchyHelper.h" -#include "../ifcgeom/IfcGeom.h" + #include "../ifcgeom/schema_agnostic/Serialization.h" #if USE_VLD