[complement-svn] SF.net SVN: complement: [1665] trunk/complement/explore
Status: Pre-Alpha
Brought to you by:
complement
From: <com...@us...> - 2007-08-03 13:38:21
|
Revision: 1665 http://complement.svn.sourceforge.net/complement/?rev=1665&view=rev Author: complement Date: 2007-08-03 06:38:19 -0700 (Fri, 03 Aug 2007) Log Message: ----------- workaround for file openmode for libstdc++ shipped with gcc 3.3.6 Modified Paths: -------------- trunk/complement/explore/include/sockios/sockstream trunk/complement/explore/lib/sockios/ChangeLog Modified: trunk/complement/explore/include/sockios/sockstream =================================================================== --- trunk/complement/explore/include/sockios/sockstream 2007-08-03 13:35:27 UTC (rev 1664) +++ trunk/complement/explore/include/sockios/sockstream 2007-08-03 13:38:19 UTC (rev 1665) @@ -386,11 +386,15 @@ basic_sockbuf() : _fd( -1 ), -#ifndef STLPORT +#if !defined(STLPORT) && defined(__GNUC__) +#if ((__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 4))) // hmm, 3.3.6 + _mode( ios_base::openmode(__ios_flags::_S_in | __ios_flags::_S_out) ), +#else // 4.1.1 _mode( _S_in | _S_out ), -#else +#endif // __GNUC__ +#else // STLPORT _mode( 0 ), -#endif +#endif // STLPORT _bbuf(0), _ebuf(0), _allocated( true ) // , _doclose( true ) { @@ -406,11 +410,15 @@ sock_base::protocol prot = sock_base::inet, const timespec *timeout = 0 ) : _fd( -1 ), -#ifndef STLPORT +#if !defined(STLPORT) && defined(__GNUC__) +#if ((__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 4))) + _mode( ios_base::openmode(__ios_flags::_S_in | __ios_flags::_S_out) ), +#else // 4.1.1 _mode( _S_in | _S_out ), -#else +#endif // __GNUC__ +#else // STLPORT _mode( 0 ), -#endif +#endif // STLPORT _bbuf(0), _ebuf(0), _allocated( true ) // , _doclose( true ) { @@ -421,11 +429,15 @@ sock_base::protocol prot = sock_base::inet, const timespec *timeout = 0 ) : _fd( -1 ), -#ifndef STLPORT +#if !defined(STLPORT) && defined(__GNUC__) +#if ((__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 4))) + _mode( ios_base::openmode(__ios_flags::_S_in | __ios_flags::_S_out) ), +#else // 4.1.1 _mode( _S_in | _S_out ), -#else +#endif // __GNUC__ +#else // STLPORT _mode( 0 ), -#endif +#endif // STLPORT _bbuf(0), _ebuf(0), _allocated( true ) // , _doclose( true ) { Modified: trunk/complement/explore/lib/sockios/ChangeLog =================================================================== --- trunk/complement/explore/lib/sockios/ChangeLog 2007-08-03 13:35:27 UTC (rev 1664) +++ trunk/complement/explore/lib/sockios/ChangeLog 2007-08-03 13:38:19 UTC (rev 1665) @@ -1,3 +1,8 @@ +2007-08-03 Petr Ovtchenkov <pt...@is...> + + * include/sockios/sockstream: workaround for file openmode + for libstdc++ shipped with gcc 3.3.6. + 2007-07-18 Petr Ovtchenkov <pt...@is...> * test/sockios: boost unit test framework replaced by exam. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |