summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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