Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/include Only provide LC_C_LOCALE under _NETBSD_SOURCE.



details:   https://anonhg.NetBSD.org/src/rev/408140b840f3
branches:  trunk
changeset: 786876:408140b840f3
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri May 17 13:00:40 2013 +0000

description:
Only provide LC_C_LOCALE under _NETBSD_SOURCE.

diffstat:

 include/locale.h |  13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 5abb17566c0e -r 408140b840f3 include/locale.h
--- a/include/locale.h  Fri May 17 12:55:56 2013 +0000
+++ b/include/locale.h  Fri May 17 13:00:40 2013 +0000
@@ -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 @@
 
 #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



Home | Main Index | Thread Index | Old Index