From: Olivier Courtin Date: Mon, 22 Feb 2010 19:52:30 +0000 (+0000) Subject: Fix missing math.h include in lwout_svg (#438). Put back lwgeom_export.h as we need... X-Git-Tag: 2.0.0alpha1~3203 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d13a983bf9394c72819cca275905a68b47f629ce;p=postgis Fix missing math.h include in lwout_svg (#438). Put back lwgeom_export.h as we need header for getSRSbySRID. git-svn-id: http://svn.osgeo.org/postgis/trunk@5301 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/lwout_svg.c b/liblwgeom/lwout_svg.c index 09199c658..535ebbf34 100644 --- a/liblwgeom/lwout_svg.c +++ b/liblwgeom/lwout_svg.c @@ -1,5 +1,5 @@ /********************************************************************** - * $Id:$ + * $Id$ * * PostGIS - Spatial Types for PostgreSQL * http://postgis.refractions.net @@ -21,6 +21,7 @@ #include "liblwgeom.h" +#include /* fabs */ static char * assvg_point(LWPOINT *point, int relative, int precision); static char * assvg_line(LWLINE *line, int relative, int precision); diff --git a/postgis/geography_inout.c b/postgis/geography_inout.c index 4ae609c62..5d717b5b1 100644 --- a/postgis/geography_inout.c +++ b/postgis/geography_inout.c @@ -28,6 +28,7 @@ #include "libgeom.h" /* For standard geometry types. */ #include "lwgeom_pg.h" /* For debugging macros. */ #include "geography.h" /* For utility functions. */ +#include "lwgeom_export.h" /* For export functions. */ Datum geography_in(PG_FUNCTION_ARGS); Datum geography_out(PG_FUNCTION_ARGS); diff --git a/postgis/lwgeom_export.c b/postgis/lwgeom_export.c index 1e3a8c84d..b17875fa6 100644 --- a/postgis/lwgeom_export.c +++ b/postgis/lwgeom_export.c @@ -19,6 +19,7 @@ #include "lwgeom_pg.h" #include "liblwgeom.h" +#include "lwgeom_export.h" Datum LWGEOM_asGML(PG_FUNCTION_ARGS); Datum LWGEOM_asKML(PG_FUNCTION_ARGS); diff --git a/postgis/lwgeom_export.h b/postgis/lwgeom_export.h new file mode 100644 index 000000000..5a5771335 --- /dev/null +++ b/postgis/lwgeom_export.h @@ -0,0 +1,12 @@ +/********************************************************************** + * $Id:$ + * + * PostGIS - Export functions for PostgreSQL/PostGIS + * Copyright 2009 Olivier Courtin + * + * This is free software; you can redistribute and/or modify it under + * the terms of the GNU General Public Licence. See the COPYING file. + * + **********************************************************************/ + +char * getSRSbySRID(int SRID, bool short_crs);