From 9e05dc82e6ec369005f4c3624389c03fcd0d6cc8 Mon Sep 17 00:00:00 2001 From: Paul Ramsey Date: Wed, 10 Mar 2010 15:38:30 +0000 Subject: [PATCH] Fix to allow compile on 9.0alpha git-svn-id: http://svn.osgeo.org/postgis/trunk@5398 b70326c6-7e19-0410-871a-916f4a2858ee --- postgis/lwgeom_accum.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/postgis/lwgeom_accum.c b/postgis/lwgeom_accum.c index 828231ae4..9d9c60552 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 { -- 2.40.0