diff options
Diffstat (limited to 'gl/regex_internal.h')
-rw-r--r-- | gl/regex_internal.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gl/regex_internal.h b/gl/regex_internal.h index 149ec2e..6165cb1 100644 --- a/gl/regex_internal.h +++ b/gl/regex_internal.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* Extended regular expression matching and search library. | 1 | /* Extended regular expression matching and search library. |
2 | Copyright (C) 2002-2023 Free Software Foundation, Inc. | 2 | Copyright (C) 2002-2024 Free Software Foundation, Inc. |
3 | This file is part of the GNU C Library. | 3 | This file is part of the GNU C Library. |
4 | Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>. | 4 | Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>. |
5 | 5 | ||
@@ -29,6 +29,7 @@ | |||
29 | #include <locale.h> | 29 | #include <locale.h> |
30 | #include <wchar.h> | 30 | #include <wchar.h> |
31 | #include <wctype.h> | 31 | #include <wctype.h> |
32 | #include <stdckdint.h> | ||
32 | #include <stdint.h> | 33 | #include <stdint.h> |
33 | 34 | ||
34 | #ifndef _LIBC | 35 | #ifndef _LIBC |
@@ -150,9 +151,6 @@ | |||
150 | as some non-GCC platforms lack them, an issue when this code is | 151 | as some non-GCC platforms lack them, an issue when this code is |
151 | used in Gnulib. */ | 152 | used in Gnulib. */ |
152 | 153 | ||
153 | #ifndef SSIZE_MAX | ||
154 | # define SSIZE_MAX ((ssize_t) (SIZE_MAX / 2)) | ||
155 | #endif | ||
156 | #ifndef ULONG_WIDTH | 154 | #ifndef ULONG_WIDTH |
157 | # define ULONG_WIDTH REGEX_UINTEGER_WIDTH (ULONG_MAX) | 155 | # define ULONG_WIDTH REGEX_UINTEGER_WIDTH (ULONG_MAX) |
158 | /* The number of usable bits in an unsigned integer type with maximum | 156 | /* The number of usable bits in an unsigned integer type with maximum |
@@ -822,7 +820,7 @@ re_string_elem_size_at (const re_string_t *pstr, Idx idx) | |||
822 | } | 820 | } |
823 | 821 | ||
824 | #ifdef _LIBC | 822 | #ifdef _LIBC |
825 | # if __GNUC__ >= 7 | 823 | # if __glibc_has_attribute (__fallthrough__) |
826 | # define FALLTHROUGH __attribute__ ((__fallthrough__)) | 824 | # define FALLTHROUGH __attribute__ ((__fallthrough__)) |
827 | # else | 825 | # else |
828 | # define FALLTHROUGH ((void) 0) | 826 | # define FALLTHROUGH ((void) 0) |