Source-Changes-HG archive

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

[src/trunk]: src/include undo protected symbol hack.



details:   https://anonhg.NetBSD.org/src/rev/9ff97a383e58
branches:  trunk
changeset: 814119:9ff97a383e58
user:      christos <christos%NetBSD.org@localhost>
date:      Tue Mar 08 03:58:31 2016 +0000

description:
undo protected symbol hack.

diffstat:

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

diffs (30 lines):

diff -r c0085282bb50 -r 9ff97a383e58 include/locale.h
--- a/include/locale.h  Tue Mar 08 03:58:08 2016 +0000
+++ b/include/locale.h  Tue Mar 08 03:58:31 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locale.h,v 1.25 2016/01/29 15:18:33 christos Exp $     */
+/*     $NetBSD: locale.h,v 1.26 2016/03/08 03:58:31 christos Exp $     */
 
 /*
  * Copyright (c) 1991, 1993
@@ -106,20 +106,12 @@
 struct lconv   *localeconv_l(locale_t);
 locale_t       newlocale(int, const char *, locale_t);
 
-#if 1  // used to be _LIBC, workaround broken binutils
-extern struct _locale  _lc_global_locale;
-#else
 extern __dso_protected struct _locale  _lc_global_locale;
-#endif
 #define LC_GLOBAL_LOCALE       (&_lc_global_locale)
 #endif /* _POSIX_SOURCE >= 200809 || _NETBSD_SOURCE */
 
 #if defined(_NETBSD_SOURCE)
-#  if 1        // used to be _LIBC, workaround broken binutils
-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