summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2013-04-25 06:52:16 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2013-04-25 06:52:16 +0000
commitd43dd5d22712a3bd7139ede18a9705715d931dbb (patch)
tree24ae63039d2618dc020228009b04717252e62866 /lib
parent67491a789db2b529bca2ac7924000574ad2da391 (diff)
gcc 2.95 doesn't support flexible array members.
Diffstat (limited to 'lib')
-rw-r--r--lib/fontconfig/common/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/fontconfig/common/config.h b/lib/fontconfig/common/config.h
index 27713a17e..b012f8e00 100644
--- a/lib/fontconfig/common/config.h
+++ b/lib/fontconfig/common/config.h
@@ -26,7 +26,11 @@
(struct s)' as it overestimates the size. Use 'offsetof (struct s, d)'
instead. Don't use 'offsetof (struct s, d[0])', as this doesn't work with
MSVC and with C++ compilers. */
+#if defined(__GNUC__) && __GNUC__ == 2 /* __vax__ */
+#define FLEXIBLE_ARRAY_MEMBER 1
+#else
#define FLEXIBLE_ARRAY_MEMBER /**/
+#endif
/* Define to 1 if you have the `chsize' function. */
/* #undef HAVE_CHSIZE */