r13532 mmu_man - /trunk/netsurf/utils/nsurl.c

netsurf at semichrome.net netsurf at semichrome.net
Mon Mar 19 02:45:53 GMT 2012


Author: mmu_man
Date: Sun Mar 18 21:45:53 2012
New Revision: 13532

URL: http://source.netsurf-browser.org?rev=13532&view=rev
Log:
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.

Modified:
    trunk/netsurf/utils/nsurl.c

Modified: trunk/netsurf/utils/nsurl.c
URL: http://source.netsurf-browser.org/trunk/netsurf/utils/nsurl.c?rev=13532&r1=13531&r2=13532&view=diff
==============================================================================
--- trunk/netsurf/utils/nsurl.c (original)
+++ trunk/netsurf/utils/nsurl.c Sun Mar 18 21:45:53 2012
@@ -156,7 +156,11 @@
 	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 */
 };
 
 




More information about the netsurf-commits mailing list