diff options
| author | joerg <joerg@NetBSD.org> | 2013-05-17 13:00:40 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2013-05-17 13:00:40 +0000 |
| commit | 2a40f9a6bd7ca1d079db8ffc802dd6e1bcaae2bd (patch) | |
| tree | b619840f83db20639da3566085720f0897b0d79d /include | |
| parent | 1d84e5d885bd333582a0857ceb6d774aeef8cb80 (diff) | |
Only provide LC_C_LOCALE under _NETBSD_SOURCE.
Diffstat (limited to 'include')
| -rw-r--r-- | include/locale.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/locale.h b/include/locale.h index 357b103ce70..43f3254cb94 100644 --- a/include/locale.h +++ b/include/locale.h @@ -1,4 +1,4 @@ -/* $NetBSD: locale.h,v 1.22 2013/05/17 12:55:57 joerg Exp $ */ +/* $NetBSD: locale.h,v 1.23 2013/05/17 13:00:40 joerg Exp $ */ /* * Copyright (c) 1991, 1993 @@ -108,12 +108,19 @@ locale_t newlocale(int, const char *, locale_t); #ifndef _LIBC extern struct _locale _lc_global_locale; -extern const struct _locale _lc_C_locale; #else extern __dso_protected struct _locale _lc_global_locale; -extern __dso_protected const struct _locale _lc_C_locale; #endif #define LC_GLOBAL_LOCALE (&_lc_global_locale) +#endif +#endif /* _POSIX_SOURCE >= 200809 || _NETBSD_SOURCE */ + +#if defined(_NETBSD_SOURCE) +# ifndef _LIBC +extern const struct _locale _lc_C_locale; +# else +extern __dso_protected const struct _locale _lc_C_locale; +# endif #define LC_C_LOCALE ((locale_t)__UNCONST(&_lc_C_locale)) #endif __END_DECLS |
