summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorRomain Naour <romain.naour@smile.fr>2019-04-16 21:33:44 +0200
committerCedric BAIL <cedric.bail@free.fr>2019-05-10 17:56:29 -0700
commitee64f61a68ef24fef6b82fcf2e78717334121c5e (patch)
treeacc8672610ce6a495d7a90982665f7494abf3337 /src/static_libs
parent5fa78a44d883d539364221afc966d0c0e5efe515 (diff)
libunibreak: add missing __has_attribute definitions for old compilers
__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>
Diffstat (limited to 'src/static_libs')
-rw-r--r--src/static_libs/libunibreak/wordbreak.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/static_libs/libunibreak/wordbreak.c b/src/static_libs/libunibreak/wordbreak.c
index 017e0fd091..50c830c7cc 100644
--- a/src/static_libs/libunibreak/wordbreak.c
+++ b/src/static_libs/libunibreak/wordbreak.c
@@ -209,6 +209,9 @@ static void set_wordbreaks(
209 posLast = posCur; 209 posLast = posCur;
210 break; 210 break;
211 } 211 }
212#ifndef __has_attribute
213# define __has_attribute(x) 0
214#endif
212#if __has_attribute(fallthrough) 215#if __has_attribute(fallthrough)
213 __attribute__((fallthrough)); 216 __attribute__((fallthrough));
214#endif 217#endif
@@ -325,6 +328,9 @@ static void set_wordbreaks(
325 wbcSeqStart = wbcCur; 328 wbcSeqStart = wbcCur;
326 posLast = posCur; 329 posLast = posCur;
327 } 330 }
331#ifndef __has_attribute
332# define __has_attribute(x) 0
333#endif
328#if __has_attribute(fallthrough) 334#if __has_attribute(fallthrough)
329 __attribute__((fallthrough)); 335 __attribute__((fallthrough));
330#endif 336#endif