__has_attribute has been introduced with gcc 5 [1].
[1] https://www.gnu.org/software/gcc/gcc-5/changes.html
Fixes:
http://autobuild.buildroot.net/results/
64ab825048fac1654b0d0698740ddf857fcc0afa/build-end.log
Signed-off-by: Cedric BAIL <cedric.bail@free.fr>
posLast = posCur;
break;
}
+#ifndef __has_attribute
+# define __has_attribute(x) 0
+#endif
#if __has_attribute(fallthrough)
__attribute__((fallthrough));
#endif
wbcSeqStart = wbcCur;
posLast = posCur;
}
+#ifndef __has_attribute
+# define __has_attribute(x) 0
+#endif
#if __has_attribute(fallthrough)
__attribute__((fallthrough));
#endif