]> granicus.if.org Git - postgis/commitdiff
Protect prepared geometry implementation in GEOS>=3.1 defines.
authorPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 4 Oct 2008 17:49:51 +0000 (17:49 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Sat, 4 Oct 2008 17:49:51 +0000 (17:49 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@3064 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_geos_c.c

index 2e79dd62601686c8a111bcf7015fe8e94cad230a..b0aa0618704bae29c9fd1fb2518504b8d7cb10c6 100644 (file)
@@ -3559,6 +3559,7 @@ Datum intersectsPrepared(PG_FUNCTION_ARGS);
 ** PreparedGeometry have to be cached, because the PreparedGeometry
 ** contains a reference to the geometry.
 */
+#ifdef PREPARED_GEOM
 typedef struct
 {
        int32                                   key1;
@@ -3793,7 +3794,6 @@ DeletePrepGeomHashEntry(MemoryContext mcxt)
 ** cycling keys don't cause too much preparing.
 **
 */
-#ifdef PREPARED_GEOM
 PrepGeomCache* 
 GetPrepGeomCache(FunctionCallInfoData *fcinfo, PG_LWGEOM *serialized_geom1, PG_LWGEOM *serialized_geom2, int32 key1, int32 key2)
 {