提交 36d18351 编写于 作者: T Thomas G. Lockhart

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().
上级 6e27af13
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* Copyright (c) 1994, Regents of the University of California * 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 * NOTE
* These routines do *not* use the float types from adt/. * These routines do *not* use the float types from adt/.
...@@ -84,7 +84,7 @@ typedef struct { ...@@ -84,7 +84,7 @@ typedef struct {
int32 npts; int32 npts;
int32 closed; /* is this a closed polygon? */ int32 closed; /* is this a closed polygon? */
int32 dummy; /* padding to make it double align */ 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; } PATH;
...@@ -119,7 +119,7 @@ typedef struct { ...@@ -119,7 +119,7 @@ typedef struct {
int32 size; /* XXX varlena */ int32 size; /* XXX varlena */
int32 npts; int32 npts;
BOX boundbox; BOX boundbox;
Point p[0]; /* variable length array of POINTs */ Point p[1]; /* variable length array of POINTs */
} POLYGON; } POLYGON;
/*--------------------------------------------------------------------- /*---------------------------------------------------------------------
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册