From 2a40f9a6bd7ca1d079db8ffc802dd6e1bcaae2bd Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 17 May 2013 13:00:40 +0000 Subject: Only provide LC_C_LOCALE under _NETBSD_SOURCE. --- include/locale.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'include') 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 -- cgit