From: Paul Ramsey Date: Tue, 16 Mar 2010 18:15:09 +0000 (+0000) Subject: Support for changes in PgSQL 9.0 core X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=694bcebe83588ad34549bec47633d822b4839380;p=postgis Support for changes in PgSQL 9.0 core git-svn-id: http://svn.osgeo.org/postgis/branches/1.4@5441 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/postgis/lwgeom_accum.c b/postgis/lwgeom_accum.c index cc4ac34dc..1676f9340 100644 --- a/postgis/lwgeom_accum.c +++ b/postgis/lwgeom_accum.c @@ -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 {