]> granicus.if.org Git - postgis/commitdiff
Move SERIALIZED_FORM to lwgeom_pg.h from liblwgeom.h since it references a PostgreSQL...
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Thu, 16 Jul 2009 21:32:48 +0000 (21:32 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Thu, 16 Jul 2009 21:32:48 +0000 (21:32 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4310 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/liblwgeom.h
postgis/lwgeom_pg.h

index 132cc8254c271095ed571900c4214cce997b587e..7c018d5b21ed593043ded317dcdb0f6dd9e04777 100644 (file)
@@ -718,12 +718,6 @@ char is_worth_caching_pglwgeom_bbox(const PG_LWGEOM *);
 char is_worth_caching_serialized_bbox(const uchar *);
 char is_worth_caching_lwgeom_bbox(const LWGEOM *);
 
-/*
- * Use this macro to extract the char * required
- * by most functions from an PG_LWGEOM struct.
- * (which is an PG_LWGEOM w/out int32 size casted to char *)
- */
-#define SERIALIZED_FORM(x) ((uchar *)VARDATA((x)))
 
 /*
  * This function computes the size in bytes
index bbb936749ff1385e8882e749d5f548be9dcabcbd..2354b290056eba826dbc20fb510de619d1c026ae 100644 (file)
@@ -83,6 +83,14 @@ extern int pglwgeom_getSRID(PG_LWGEOM *pglwgeom);
 extern Oid getGeometryOID(void);
 
 /* PG-dependant */
+
+/*
+ * Use this macro to extract the char * required
+ * by most functions from an PG_LWGEOM struct.
+ * (which is an PG_LWGEOM w/out int32 size casted to char *)
+ */
+#define SERIALIZED_FORM(x) ((uchar *)VARDATA((x)))
+
 /* BOX is postgresql standard type */
 extern void box_to_box3d_p(BOX *box, BOX3D *out);
 extern void box3d_to_box_p(BOX3D *box, BOX *out);