diff options
Diffstat (limited to 'gl/mbtowc-lock.h')
| -rw-r--r-- | gl/mbtowc-lock.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gl/mbtowc-lock.h b/gl/mbtowc-lock.h index 2dc22ace..10f7dc7c 100644 --- a/gl/mbtowc-lock.h +++ b/gl/mbtowc-lock.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Use the internal lock used by mbrtowc and mbrtoc32. | 1 | /* Use the internal lock used by mbrtowc and mbrtoc32. |
| 2 | Copyright (C) 2019-2023 Free Software Foundation, Inc. | 2 | Copyright (C) 2019-2024 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is free software: you can redistribute it and/or modify | 4 | This file is free software: you can redistribute it and/or modify |
| 5 | it under the terms of the GNU Lesser General Public License as | 5 | it under the terms of the GNU Lesser General Public License as |
| @@ -21,7 +21,7 @@ | |||
| 21 | static inline int | 21 | static inline int |
| 22 | mbtowc_unlocked (wchar_t *pwc, const char *p, size_t m) | 22 | mbtowc_unlocked (wchar_t *pwc, const char *p, size_t m) |
| 23 | { | 23 | { |
| 24 | /* Put the hidden internal state of mbtowc into its initial state. | 24 | /* Put the hidden internal state of mbtowc into an initial state. |
| 25 | This is needed at least with glibc, uClibc, and MSVC CRT. | 25 | This is needed at least with glibc, uClibc, and MSVC CRT. |
| 26 | See <https://sourceware.org/bugzilla/show_bug.cgi?id=9674>. */ | 26 | See <https://sourceware.org/bugzilla/show_bug.cgi?id=9674>. */ |
| 27 | mbtowc (NULL, NULL, 0); | 27 | mbtowc (NULL, NULL, 0); |
| @@ -32,7 +32,7 @@ mbtowc_unlocked (wchar_t *pwc, const char *p, size_t m) | |||
| 32 | /* Prohibit renaming this symbol. */ | 32 | /* Prohibit renaming this symbol. */ |
| 33 | #undef gl_get_mbtowc_lock | 33 | #undef gl_get_mbtowc_lock |
| 34 | 34 | ||
| 35 | #if GNULIB_MBRTOWC_SINGLE_THREAD | 35 | #if AVOID_ANY_THREADS || GNULIB_MBRTOWC_SINGLE_THREAD |
| 36 | 36 | ||
| 37 | /* All uses of this function are in a single thread. No locking needed. */ | 37 | /* All uses of this function are in a single thread. No locking needed. */ |
| 38 | 38 | ||
