]> granicus.if.org Git - postgis/commitdiff
Fix warnings when building with GEOS < 3.3.0 (ticket #434
authorSandro Santilli <strk@keybit.net>
Mon, 22 Feb 2010 19:35:05 +0000 (19:35 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 22 Feb 2010 19:35:05 +0000 (19:35 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5298 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_geos_clean.c

index 18fa0e3211874b5d0206c8275ee872b318096176..6c91b6be6dfad2a829ad2fd4502bb6dc61b4d291 100644 (file)
@@ -403,6 +403,7 @@ LWGEOM_GEOS_nodeLines(GEOSGeometry* lines)
        return noded;
 }
 
+#if POSTGIS_GEOS_VERSION >= 33
 /*
  * We expect initGEOS being called already.
  * Will return NULL on error (expect error handler being called by then)
@@ -648,6 +649,7 @@ LWGEOM_GEOS_makeValidPolygon(const GEOSGeometry* gin)
 
        return gout;
 }
+#endif /* POSTGIS_GEOS_VERSION >= 33 */
 
 Datum st_makevalid(PG_FUNCTION_ARGS);
 PG_FUNCTION_INFO_V1(st_makevalid);