Update.
authorUlrich Drepper <drepper@redhat.com>
Fri, 13 Jun 2003 05:19:10 +0000 (05:19 +0000)
committerUlrich Drepper <drepper@redhat.com>
Fri, 13 Jun 2003 05:19:10 +0000 (05:19 +0000)
2003-06-12  Ulrich Drepper  <drepper@redhat.com>

* wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].

ChangeLog
nss/getXXbyYY_r.c
wcsmbs/wchar.h

index d6f4740f6cf71a71ffe1204b42dac759dce94b7d..c841a0eafc4cdf0f5c79822da0aedbf7cc4194e7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-06-12  Ulrich Drepper  <drepper@redhat.com>
+
+       * wcsmbs/wchar.h: Define wint_t in std namespace, too [PR libc/5034].
+
 2003-05-29  Jim Meyering  <jim@meyering.net>
 
        * time/strftime.c (my_strftime) [!defined _NL_CURRENT
index 3f873a5fde304a469ea977c0cc113b513008bd7c..06f2abedd01f7e1a96ca73652bff46f2e9ef5e93 100644 (file)
@@ -248,13 +248,12 @@ done:
   POSTPROCESS;
 #endif
   return (status == NSS_STATUS_SUCCESS ? 0
-         : (status != NSS_STATUS_TRYAGAIN
 #ifdef NEED_H_ERRNO
-            /* These functions only set errno if h_errno is
-               NETDB_INTERNAL.  */
-            && *h_errnop == NETDB_INTERNAL
+         /* These functions only set errno if h_errno is NETDB_INTERNAL.  */
+         : status == NSS_STATUS_TRYAGAIN && *h_errnop != NETDB_INTERNAL
+         ? EAGAIN
 #endif
-            ? errno : EAGAIN));
+         : errno);
 }
 
 
index 8cdd79bb701502826ab015fb58870a8ccc2a17ae..8bab0ddd7bcb5e670aa0cc9049472d7139b12cc2 100644 (file)
 # define _WINT_T
 typedef unsigned int wint_t;
 #else
-# ifdef __USE_GNU
-__USING_NAMESPACE_STD(wint_t)
+/* Work around problems with the <stddef.h> file which doesn't put
+   wint_t in the std namespace.  */
+# if defined __cplusplus && defined _GLIBCPP_USE_NAMESPACES \
+     && defined __WINT_TYPE__
+__BEGIN_NAMESPACE_STD
+typedef __WINT_TYPE__ wint_t;
+__END_NAMESPACE_STD
 # endif
 #endif