From 9cb321e73d9c92e889a34c7fc218ca5218929630 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 10 May 2019 14:38:42 +0200 Subject: [PATCH] Move include up for M_PI def on MSVC --- src/ifcgeom/kernels/cgal/CgalIfcGeomWires.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ifcgeom/kernels/cgal/CgalIfcGeomWires.cpp b/src/ifcgeom/kernels/cgal/CgalIfcGeomWires.cpp index 70d4fbee0a..457fc7dc63 100644 --- a/src/ifcgeom/kernels/cgal/CgalIfcGeomWires.cpp +++ b/src/ifcgeom/kernels/cgal/CgalIfcGeomWires.cpp @@ -1,12 +1,12 @@ +// For MSVC to have M_PI +#define _USE_MATH_DEFINES +#include + #include "CgalKernel.h" #include "../../../ifcgeom/schema_agnostic/cgal/CgalConversionResult.h" #define CgalKernel MAKE_TYPE_NAME(CgalKernel) -// For MSVC to have M_PI -#define _USE_MATH_DEFINES -#include - bool IfcGeom::CgalKernel::convert(const IfcSchema::IfcPolyLoop* l, cgal_wire_t& result) { IfcSchema::IfcCartesianPoint::list::ptr points = l->Polygon();