]> granicus.if.org Git - postgis/commitdiff
More postgis_config.h inclusion removal from headers
authorSandro Santilli <strk@keybit.net>
Thu, 9 Feb 2012 17:16:29 +0000 (17:16 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 9 Feb 2012 17:16:29 +0000 (17:16 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9135 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_geos.c
postgis/lwgeom_geos.h
postgis/lwgeom_geos_clean.c
postgis/lwgeom_geos_prepared.c
postgis/lwgeom_geos_prepared.h
postgis/lwgeom_geos_relatematch.c

index 031f2b4469f52eab2ec0648422176a93ada9ff35..14f6202f44f35549b42f881a4137d40e1c7ce183 100644 (file)
  *
  **********************************************************************/
 
+/* TODO: we probaby don't need _all_ these pgsql headers */
+#include "postgres.h"
+#include "fmgr.h"
+#include "miscadmin.h"
+#include "utils/array.h"
+#include "utils/builtins.h"
+#include "utils/hsearch.h"
+#include "utils/memutils.h"
+#include "executor/spi.h"
+#include "funcapi.h"
+
+#include "../postgis_config.h"
+#include "lwgeom_functions_analytic.h" /* for point_in_polygon */
+#include "lwgeom_cache.h"
 #include "lwgeom_geos.h"
 #include "liblwgeom_internal.h"
 #include "lwgeom_rtree.h"
-#include "lwgeom_functions_analytic.h" /* for point_in_polygon */
-#include "funcapi.h"
-#include "lwgeom_cache.h"
 
 /*
 ** GEOS prepared geometry is only available from GEOS 3.1 onwards
 #include <string.h>
 #include <assert.h>
 
+#if POSTGIS_PROFILE > 0
+#warning POSTGIS_PROFILE enabled!
+#endif
+
+
 /*
 ** Prototypes for SQL-bound functions
 */
index 146f6fa0c3f453a35ea79c7a277bd9476da7e69a..c93e68dcd837e94de06a2c68fc9ef63272a4cd53 100644 (file)
 #ifndef LWGEOM_GEOS_H_
 #define LWGEOM_GEOS_H_ 1
 
-#include "postgres.h"
-#include "fmgr.h"
-#include "miscadmin.h"
-#include "utils/array.h"
-#include "utils/builtins.h"
-#include "utils/hsearch.h"
-#include "utils/memutils.h"
-#include "executor/spi.h"
-
-#include "../postgis_config.h"
-
-#include "lwgeom_pg.h"
-#include "liblwgeom.h"
-#include "../liblwgeom/liblwgeom.h"
-#include "../liblwgeom/lwgeom_geos.h"
-
-#include <string.h>
-
-#if POSTGIS_PROFILE > 0
-#warning POSTGIS_PROFILE enabled!
-#endif
+#include "../liblwgeom/lwgeom_geos.h" /* for GEOSGeom */
+#include "liblwgeom.h" /* for GSERIALIZED */
 
 /*
 ** Public prototypes for GEOS utility functions.
index 1d04b1666971298a9af518c20ba71089b5592128..fb407511216eb4b4c3e4068add840e766dd8cdd6 100644 (file)
  *
  **********************************************************************/
 
+#include "postgres.h"
+#include "fmgr.h"
+#include "funcapi.h"
+
+#include "../postgis_config.h"
 #include "lwgeom_geos.h"
 #include "liblwgeom.h"
 #include "liblwgeom_internal.h"
-#include "funcapi.h"
+#include "lwgeom_pg.h"
 
 #include <string.h>
 #include <assert.h>
index 8b76b9089e72c285b2b4806fa2a103e494de5d90..18d620007eb6c5c5cd957770369ca5c62987138c 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <assert.h>
 
+#include "../postgis_config.h"
 #include "lwgeom_geos_prepared.h"
 #include "lwgeom_cache.h"
 
index 7465bb05dbc7ae1c489dd4418a6220a8ae85bd50..c32977ee6a0975c2324671e88d8f7c5310118dac 100644 (file)
@@ -20,8 +20,6 @@
 #include "utils/memutils.h"
 #include "access/hash.h"
 
-#include "../postgis_config.h"
-
 #include "lwgeom_pg.h"
 #include "liblwgeom.h"
 #include "lwgeom_geos.h"
index c0c9b6167be14375b0f53b6895c8a7cbad7c12c6..48d53569f4255f6d04547b2278f811cf1039d52f 100644 (file)
  *
  **********************************************************************/
 
+#include "postgres.h"
+#include "fmgr.h"
+#include "funcapi.h"
+
+#include "../postgis_config.h"
 #include "lwgeom_geos.h"
+#include "lwgeom_pg.h"
 
 #include <string.h>
 #include <assert.h>