+ fix build errors with VS2010
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5122 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
parent
bb3d204603
commit
21042dd515
|
@ -134,13 +134,21 @@ void DirectoryCollection::load( bool recursive, const FilePath &subdir ) {
|
|||
if ( *it == "." || *it == ".." || *it == "..." )
|
||||
continue ;
|
||||
|
||||
# if (defined(_MSC_VER) && (_MSC_VER >= 1800))
|
||||
if ( boost::filesystem::get< is_directory >( it ) && recursive ) {
|
||||
load( recursive, subdir + *it ) ;
|
||||
} else {
|
||||
_entries.push_back( ent = new BasicEntry( subdir + *it, "", _filepath ) ) ;
|
||||
ent->setSize( boost::filesystem::get< boost::filesystem::size >( it ) ) ;
|
||||
}
|
||||
#else
|
||||
if ( get< is_directory >( it ) && recursive ) {
|
||||
load( recursive, subdir + *it ) ;
|
||||
} else {
|
||||
_entries.push_back( ent = new BasicEntry( subdir + *it, "", _filepath ) ) ;
|
||||
ent->setSize( get< boost::filesystem::size >( it ) ) ;
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user