]> granicus.if.org Git - postgis/commitdiff
The GEOS 2.2 series "geos_c.h" is missing header guards, so including the header...
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Thu, 6 Nov 2008 16:12:11 +0000 (16:12 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Thu, 6 Nov 2008 16:12:11 +0000 (16:12 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@3262 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_geos.h
lwgeom/lwgeom_geos_prepared.h

index 1f4dc98f6705a2900eb68dfb9583af8b728502da..93b980d8c17131b563fc3d5776e8fc5c567be700 100644 (file)
 #include "utils/memutils.h"
 #include "executor/spi.h"
 
+/* Workaround for GEOS 2.2 compatibility: old geos_c.h does not contain 
+   header guards to protect from multiple inclusion */ 
+#ifndef GEOS_C_INCLUDED
+#define GEOS_C_INCLUDED
 #include "geos_c.h"
+#endif
 
 #include "lwgeom_pg.h"
 #include "liblwgeom.h"
index 46701eae2d4fc4319b84905cb70b33db565884a2..9651c7bbc55b37641bd7575e0e3b3378017ab047 100644 (file)
 #include "utils/memutils.h"
 #include "access/hash.h"
 
+/* Workaround for GEOS 2.2 compatibility: old geos_c.h does not contain
+   header guards to protect from multiple inclusion */
+#ifndef GEOS_C_INCLUDED
+#define GEOS_C_INCLUDED
 #include "geos_c.h"
+#endif
 
 #include "lwgeom_pg.h"
 #include "liblwgeom.h"