From: Sandro Santilli Date: Fri, 7 Jan 2005 11:50:49 +0000 (+0000) Subject: Moved pgsql compatibility code into pgsql_compat.h X-Git-Tag: pgis_1_0_0RC1~56 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f6af6e6c07ec1a79561a91c0d809221dd4dee6e1;p=postgis Moved pgsql compatibility code into pgsql_compat.h git-svn-id: http://svn.osgeo.org/postgis/trunk@1248 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/lwgeom/lwgeom_ogc.c b/lwgeom/lwgeom_ogc.c index 894af257b..f3346729f 100644 --- a/lwgeom/lwgeom_ogc.c +++ b/lwgeom/lwgeom_ogc.c @@ -69,10 +69,6 @@ int32 lwgeom_numpoints_linestring_recursive(char *serialized); int32 lwgeom_dimension_recursive(char *serialized); char line_is_closed(LWLINE *line); -#if USE_VERSION < 73 -#define WARNING NOTICE -#endif - /*------------------------------------------------------------------*/ // getSRID(lwgeom) :: int4 diff --git a/lwgeom/lwgeom_pg.h b/lwgeom/lwgeom_pg.h index fa986f62f..bb920b717 100644 --- a/lwgeom/lwgeom_pg.h +++ b/lwgeom/lwgeom_pg.h @@ -5,6 +5,7 @@ #include "utils/geo_decls.h" #include "fmgr.h" #include "liblwgeom.h" +#include "pgsql_compat.h" #ifndef PG_NARGS #define PG_NARGS() (fcinfo->nargs) diff --git a/lwgeom/pgsql_compat.h b/lwgeom/pgsql_compat.h new file mode 100644 index 000000000..0e74e87f2 --- /dev/null +++ b/lwgeom/pgsql_compat.h @@ -0,0 +1,7 @@ +#ifndef _PGSQL_COMPAT_H + +#if USE_VERSION < 73 +#define WARNING NOTICE +#endif + +#endif // _PGSQL_COMPAT_H