From eed0b55f015f168f0ca455d0e77a352e8f01d6d5 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Thu, 14 Mar 2024 10:26:51 +0100 Subject: [PATCH] Move version definition below header include --- src/ifcparse/IfcParse.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/ifcparse/IfcParse.h b/src/ifcparse/IfcParse.h index 83ae345ef3..e945efa6db 100644 --- a/src/ifcparse/IfcParse.h +++ b/src/ifcparse/IfcParse.h @@ -27,18 +27,13 @@ #ifndef IFCPARSE_H #define IFCPARSE_H -#if defined(IFCOPENSHELL_BRANCH) && defined(IFCOPENSHELL_COMMIT) -#define IFCOPENSHELL_VERSION STRINGIFY(IFCOPENSHELL_BRANCH) "-" STRINGIFY(IFCOPENSHELL_COMMIT) -#else -#define IFCOPENSHELL_VERSION "0.8.0" -#endif - #include "aggregate_of_instance.h" #include "Argument.h" #include "ifc_parse_api.h" #include "IfcBaseClass.h" #include "IfcCharacterDecoder.h" #include "IfcSpfStream.h" +#include "macros.h" #include #include @@ -47,6 +42,12 @@ #include #include +#if defined(IFCOPENSHELL_BRANCH) && defined(IFCOPENSHELL_COMMIT) +#define IFCOPENSHELL_VERSION STRINGIFY(IFCOPENSHELL_BRANCH) "-" STRINGIFY(IFCOPENSHELL_COMMIT) +#else +#define IFCOPENSHELL_VERSION "0.8.0" +#endif + namespace IfcParse { class IfcFile;