]> granicus.if.org Git - postgis/commitdiff
Moved pgsql compatibility code into pgsql_compat.h
authorSandro Santilli <strk@keybit.net>
Fri, 7 Jan 2005 11:50:49 +0000 (11:50 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 7 Jan 2005 11:50:49 +0000 (11:50 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@1248 b70326c6-7e19-0410-871a-916f4a2858ee

lwgeom/lwgeom_ogc.c
lwgeom/lwgeom_pg.h
lwgeom/pgsql_compat.h [new file with mode: 0644]

index 894af257b3cdefaa6ed87a1a9b7241e10af7c0d4..f3346729f7ed90790daf5db132d49f34a5d84f20 100644 (file)
@@ -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
index fa986f62fa9ff357fca7013509341dc2dc043824..bb920b7177934d023a93837513da84553f90904d 100644 (file)
@@ -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 (file)
index 0000000..0e74e87
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef _PGSQL_COMPAT_H
+
+#if USE_VERSION < 73
+#define WARNING NOTICE
+#endif
+
+#endif // _PGSQL_COMPAT_H