stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Liviu Nicoara <nico...@roguewave.com>
Subject gcc builds broken on dev: mbstate_t not in std
Date Tue, 10 Jan 2006 17:06:59 GMT
Martin,

As we discussed it yesterday the gcc builds are broken on dev because of
  a glitch introduced in [I believe] revision 366948.

AFAICT the else branch of the new SunOS conditional in rw/_mbstate.h
does not preserve the former logic.

The following is a tentative patch; could you please take a look at it
and see if I understood correctly the problem?

Thanks,
Liviu

Index: include/rw/_mbstate.h
===================================================================
--- include/rw/_mbstate.h       (revision 367667)
+++ include/rw/_mbstate.h       (working copy)
@@ -122,7 +122,19 @@
 #    endif   // _RWSTD_NO_USING_LIBC_IN_STD

 #  else   // if !defined (_RWSTD_OS_SUNOS)
+
 #    include _RWSTD_CWCHAR
+
+#    ifndef _RWSTD_NO_USING_LIBC_IN_STD
+
+namespace std {
+
+using ::mbstate_t;
+
+}   // namespace std
+
+#    endif // _RWSTD_NO_USING_LIBC_IN_STD
+
 #  endif   // _RWSTD_OS_SUNOS

 #elif !defined (_RWSTD_MBSTATE_T_DEFINED)


Mime
View raw message