diff options
Diffstat (limited to 'gl/hard-locale.h')
-rw-r--r-- | gl/hard-locale.h | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/gl/hard-locale.h b/gl/hard-locale.h index 880c9e8..5d40e52 100644 --- a/gl/hard-locale.h +++ b/gl/hard-locale.h | |||
@@ -1,6 +1,6 @@ | |||
1 | /* Determine whether a locale is hard. | 1 | /* Determine whether a locale is hard. |
2 | 2 | ||
3 | Copyright (C) 1999, 2003-2004, 2009-2023 Free Software Foundation, Inc. | 3 | Copyright (C) 1999, 2003-2004, 2009-2024 Free Software Foundation, Inc. |
4 | 4 | ||
5 | This file is free software: you can redistribute it and/or modify | 5 | This file is free software: you can redistribute it and/or modify |
6 | it under the terms of the GNU Lesser General Public License as | 6 | it under the terms of the GNU Lesser General Public License as |
@@ -16,11 +16,23 @@ | |||
16 | along with this program. If not, see <https://www.gnu.org/licenses/>. */ | 16 | along with this program. If not, see <https://www.gnu.org/licenses/>. */ |
17 | 17 | ||
18 | #ifndef HARD_LOCALE_H_ | 18 | #ifndef HARD_LOCALE_H_ |
19 | # define HARD_LOCALE_H_ 1 | 19 | #define HARD_LOCALE_H_ 1 |
20 | |||
21 | #ifdef __cplusplus | ||
22 | extern "C" { | ||
23 | #endif | ||
24 | |||
20 | 25 | ||
21 | /* Return true if the specified CATEGORY of the current locale is hard, i.e. | 26 | /* Return true if the specified CATEGORY of the current locale is hard, i.e. |
22 | different from the C or POSIX locale that has a fixed behavior. | 27 | different from the C or POSIX locale that has a fixed behavior. |
23 | CATEGORY must be one of the LC_* values, but not LC_ALL. */ | 28 | CATEGORY must be one of the LC_* values, but not LC_ALL. |
29 | Note: This function uses the current global locale; it ignores the | ||
30 | per-thread locale. */ | ||
24 | extern bool hard_locale (int category); | 31 | extern bool hard_locale (int category); |
25 | 32 | ||
33 | |||
34 | #ifdef __cplusplus | ||
35 | } | ||
36 | #endif | ||
37 | |||
26 | #endif /* HARD_LOCALE_H_ */ | 38 | #endif /* HARD_LOCALE_H_ */ |