diff options
author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2024-11-06 09:24:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-06 09:24:23 +0100 |
commit | 9b4df9e50837cc837e113053ba12ee6967d5e6c2 (patch) | |
tree | bf989e771579f835bcb49c074637a8e224bcecbc /gl/mbtowc-lock.h | |
parent | 94150ae347beb25ac369d5773834ceef7f3736d3 (diff) | |
parent | 5be04ec2ceb1df77afbca4fcbf9e92a712612d6f (diff) | |
download | monitoring-plugins-9b4df9e50837cc837e113053ba12ee6967d5e6c2.tar.gz |
Merge pull request #2037 from RincewindsHat/update/gnulib-1.0
Sync with the latest Gnulib code (d4ec02b3cc) (gnulib v1.0)
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 | ||