? bin ? filesystem-1.diff ? stage ? tools/build/jam_src/bin.linuxx86 ? tools/build/jam_src/bootstrap.gcc Index: libs/filesystem/src/exception.cpp =================================================================== RCS file: /cvsroot/boost/boost/libs/filesystem/src/exception.cpp,v retrieving revision 1.13 diff -u -p -r1.13 exception.cpp --- libs/filesystem/src/exception.cpp 26 Nov 2003 12:45:13 -0000 1.13 +++ libs/filesystem/src/exception.cpp 9 Jan 2004 08:28:28 -0000 @@ -47,10 +47,10 @@ namespace fs = boost::filesystem; namespace { +# ifdef BOOST_WINDOWS std::string system_message( int sys_err_code ) { std::string str; -# ifdef BOOST_WINDOWS LPVOID lpMsgBuf; ::FormatMessageA( FORMAT_MESSAGE_ALLOCATE_BUFFER | @@ -68,11 +68,16 @@ namespace while ( str.size() && (str[str.size()-1] == '\n' || str[str.size()-1] == '\r') ) str.erase( str.size()-1 ); + return str; + } # else + std::string system_message( int ) + { + std::string str; str += std::strerror( errno ); -# endif return str; } +# endif struct ec_xlate { int sys_ec; fs::error_code ec; }; const ec_xlate ec_table[] = Index: libs/filesystem/src/operations_posix_windows.cpp =================================================================== RCS file: /cvsroot/boost/boost/libs/filesystem/src/operations_posix_windows.cpp,v retrieving revision 1.24 diff -u -p -r1.24 operations_posix_windows.cpp --- libs/filesystem/src/operations_posix_windows.cpp 18 Dec 2003 01:57:13 -0000 1.24 +++ libs/filesystem/src/operations_posix_windows.cpp 9 Jan 2004 08:28:28 -0000 @@ -451,7 +451,7 @@ namespace boost const std::size_t buf_sz = 32768; boost::scoped_array buf( new char [buf_sz] ); - int infile, outfile=0; // init quiets compiler warning + int infile=0, outfile=0; // init quiets compiler warning struct stat from_stat; if ( ::stat( from_file_ph.string().c_str(), &from_stat ) != 0 Index: libs/filesystem/src/path_posix_windows.cpp =================================================================== RCS file: /cvsroot/boost/boost/libs/filesystem/src/path_posix_windows.cpp,v retrieving revision 1.14 diff -u -p -r1.14 path_posix_windows.cpp --- libs/filesystem/src/path_posix_windows.cpp 9 Dec 2003 18:10:50 -0000 1.14 +++ libs/filesystem/src/path_posix_windows.cpp 9 Jan 2004 08:28:28 -0000 @@ -131,14 +131,17 @@ namespace boost { // name_check functions ----------------------------------------------// +# ifdef BOOST_WINDOWS BOOST_FILESYSTEM_DECL bool native( const std::string & name ) { -# ifdef BOOST_WINDOWS return windows_name( name ); + } # else + BOOST_FILESYSTEM_DECL bool native( const std::string & ) + { return true; -# endif } +# endif BOOST_FILESYSTEM_DECL bool no_check( const std::string & ) { return true; } @@ -611,8 +614,9 @@ namespace boost { assert( new_check ); if ( !safe_to_write_check ) - throw filesystem_error( "boost::filesystem::default_name_check", - "default name check already set" ); + boost::throw_exception( + filesystem_error( "boost::filesystem::default_name_check", + "default name check already set" )); default_check = new_check; safe_to_write_check = false; }