]> granicus.if.org Git - postgis/commitdiff
Fix to allow compile on 9.0alpha
authorPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 10 Mar 2010 15:38:30 +0000 (15:38 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Wed, 10 Mar 2010 15:38:30 +0000 (15:38 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@5398 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_accum.c

index 828231ae42f58801d98935b8a20405b3401ff6e0..9d9c605526e263032c96d5dab1a194410ccf132b 100644 (file)
@@ -105,9 +105,13 @@ pgis_geometry_accum_transfn(PG_FUNCTION_ARGS)
 
        if (fcinfo->context && IsA(fcinfo->context, AggState))
                aggcontext = ((AggState *) fcinfo->context)->aggcontext;
-#if POSTGIS_PGSQL_VERSION >= 84
+#if POSTGIS_PGSQL_VERSION == 84
        else if (fcinfo->context && IsA(fcinfo->context, WindowAggState))
                aggcontext = ((WindowAggState *) fcinfo->context)->wincontext;
+#endif
+#if POSTGIS_PGSQL_VERSION > 84
+       else if (fcinfo->context && IsA(fcinfo->context, WindowAggState))
+               aggcontext = ((WindowAggState *) fcinfo->context)->aggcontext;
 #endif
        else
        {