summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorFran├žois Revel <mmu_man@netsurf-browser.org>2012-03-19 02:45:53 +0000
committerFran├žois Revel <mmu_man@netsurf-browser.org>2012-03-19 02:45:53 +0000
commit3d3bb0c5cf053c7a79556a705103f49a9cfd1d21 (patch)
tree74971fafb52522f71f4bcebe1672ab8ca68c906a /utils
parentf926feadd60c4df24c8427269eda5a85f257ab7e (diff)
downloadnetsurf-3d3bb0c5cf053c7a79556a705103f49a9cfd1d21.tar.gz
netsurf-3d3bb0c5cf053c7a79556a705103f49a9cfd1d21.tar.bz2
Workaround use of C99 flex array. gcc2 did not support it, only 0-len arrays. Possibly a FLEX_ARRAY_LEN macro could be defined in utils.h instead.
svn path=/trunk/netsurf/; revision=13532
Diffstat (limited to 'utils')
-rw-r--r--utils/nsurl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/utils/nsurl.c b/utils/nsurl.c
index 6f827c249..be7cf2c05 100644
--- a/utils/nsurl.c
+++ b/utils/nsurl.c
@@ -156,7 +156,11 @@ struct nsurl {
int count; /* Number of references to NetSurf URL object */
size_t length; /* Length of string */
- char string[]; /* Full URL as a string */
+ char string[
+#if defined(__GNUC__) && (__GNUC__ < 3)
+ 0
+#endif
+ ]; /* Full URL as a string */
};