summaryrefslogtreecommitdiff
path: root/gs/contrib
diff options
context:
space:
mode:
authorRalph Giles <ralph.giles@artifex.com>2008-09-18 00:37:45 +0000
committerRalph Giles <ralph.giles@artifex.com>2008-09-18 00:37:45 +0000
commitc9764dafc8f816d30d53f602108a63b3ce584803 (patch)
treed77214d76a0038155b6c97d43af2f46f704b13a0 /gs/contrib
parenta1233bc4cc3229c5879899b14baf913451fb03ee (diff)
The SunPro compiler doesn't handle variable length arrays in structs.
Bug 689079. Patch from Jon Peatfield. git-svn-id: http://svn.ghostscript.com/ghostscript/trunk@9098 a1074d23-0009-0410-80fe-cf8c14f379e6
Diffstat (limited to 'gs/contrib')
-rw-r--r--gs/contrib/opvp/opvp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gs/contrib/opvp/opvp.h b/gs/contrib/opvp/opvp.h
index a259b2cae..f0cf2f734 100644
--- a/gs/contrib/opvp/opvp.h
+++ b/gs/contrib/opvp/opvp.h
@@ -155,6 +155,8 @@ typedef struct _opvp_brushdata {
opvp_int_t width, height, pitch;
#if defined(__GNUC__) && __GNUC__ <= 2
opvp_byte_t data[1];
+#elif defined(__SUNPRO_C)
+ opvp_byte_t data[1];
#else
opvp_byte_t data[];
#endif