aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>1997-05-06 07:24:42 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>1997-05-06 07:24:42 +0000
commit36d18351aa3b0c171206ffe461bdb25640f56d3d (patch)
tree9a65bb1e4bab6c07defe21d43c36b7fc9da12abc /src
parent6e27af13ebc225e53b841a1e6a8faacdeb804919 (diff)
downloadpostgresql-36d18351aa3b0c171206ffe461bdb25640f56d3d.tar.gz
postgresql-36d18351aa3b0c171206ffe461bdb25640f56d3d.zip
Change dummy array dimensions from [0] to [1] to keep non-gcc compilers happy.
No real change in the support code is required since the actual size of the structures is calculated using offsetof() rather than sizeof().
Diffstat (limited to 'src')
-rw-r--r--src/include/utils/geo_decls.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/utils/geo_decls.h b/src/include/utils/geo_decls.h
index 2d0aeee86fb..03638eb8dd6 100644
--- a/src/include/utils/geo_decls.h
+++ b/src/include/utils/geo_decls.h
@@ -5,7 +5,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: geo_decls.h,v 1.3 1997/04/25 18:40:50 scrappy Exp $
+ * $Id: geo_decls.h,v 1.4 1997/05/06 07:24:42 thomas Exp $
*
* NOTE
* These routines do *not* use the float types from adt/.
@@ -84,7 +84,7 @@ typedef struct {
int32 npts;
int32 closed; /* is this a closed polygon? */
int32 dummy; /* padding to make it double align */
- Point p[0]; /* variable length array of POINTs */
+ Point p[1]; /* variable length array of POINTs */
} PATH;
@@ -119,7 +119,7 @@ typedef struct {
int32 size; /* XXX varlena */
int32 npts;
BOX boundbox;
- Point p[0]; /* variable length array of POINTs */
+ Point p[1]; /* variable length array of POINTs */
} POLYGON;
/*---------------------------------------------------------------------