[geos-commits] r4325 - in trunk: include/geos/operation/distance tests/unit/capi

Sandro Santilli strk at kbt.io
Thu Jan 12 00:41:51 PST 2017


Author: strk
Date: 2017-01-12 00:41:51 -0800 (Thu, 12 Jan 2017)
New Revision: 4325

Modified:
   trunk/include/geos/operation/distance/FacetSequenceTreeBuilder.h
   trunk/tests/unit/capi/GEOSDistanceTest.cpp
Log:
Missing GEOS_DLL and USE_MATH_DEFINES for MSVC compilation

Patch by Escande Adrien <adrien.escande at gmail.com> via
https://github.com/libgeos/libgeos/pull/76

Modified: trunk/include/geos/operation/distance/FacetSequenceTreeBuilder.h
===================================================================
--- trunk/include/geos/operation/distance/FacetSequenceTreeBuilder.h	2017-01-05 19:47:42 UTC (rev 4324)
+++ trunk/include/geos/operation/distance/FacetSequenceTreeBuilder.h	2017-01-12 08:41:51 UTC (rev 4325)
@@ -27,7 +27,7 @@
 namespace geos {
     namespace operation {
         namespace distance {
-            class FacetSequenceTreeBuilder {
+            class GEOS_DLL FacetSequenceTreeBuilder {
             private:
                 // 6 seems to be a good facet sequence size
                 static const int FACET_SEQUENCE_SIZE = 6;

Modified: trunk/tests/unit/capi/GEOSDistanceTest.cpp
===================================================================
--- trunk/tests/unit/capi/GEOSDistanceTest.cpp	2017-01-05 19:47:42 UTC (rev 4324)
+++ trunk/tests/unit/capi/GEOSDistanceTest.cpp	2017-01-12 08:41:51 UTC (rev 4325)
@@ -10,6 +10,9 @@
 #include <cstdlib>
 #include <memory>
 #include <math.h>
+#ifndef M_PI
+#define M_PI       3.14159265358979323846
+#endif
 
 namespace tut
 {



More information about the geos-commits mailing list