From 57676ad1c0209b3e4fee9043a3850b272fa7f05e Mon Sep 17 00:00:00 2001 From: François Revel Date: Mon, 19 Mar 2012 18:24:43 +0000 Subject: Reworked r13532 in a cleaner way. The FLEX_ARRAY_LEN_DECL macro from utils.h should be used when declaring an empty array at end of struct. svn path=/trunk/netsurf/; revision=13535 --- utils/utils.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'utils/utils.h') diff --git a/utils/utils.h b/utils/utils.h index f00ea286a..02bf75fea 100644 --- a/utils/utils.h +++ b/utils/utils.h @@ -52,6 +52,12 @@ #define PRId64 "lld" #endif +#if defined(__GNUC__) && (__GNUC__ < 3) +#define FLEX_ARRAY_LEN_DECL 0 +#else +#define FLEX_ARRAY_LEN_DECL +#endif + #if defined(__HAIKU__) || defined(__BEOS__) #define strtof(s,p) ((float)(strtod((s),(p)))) #endif -- cgit v1.2.3