Merge topic 'update-kwsys'

391748d5 Merge branch 'upstream-kwsys' into update-kwsys
0b9aad75 KWSys 2015-01-23 (d4e7f08e)
This commit is contained in:
Brad King 2015-01-26 09:51:55 -05:00 committed by CMake Topic Stage
commit cb243cce13
1 changed files with 5 additions and 0 deletions

View File

@ -244,6 +244,11 @@ unsigned long Directory::GetNumberOfFilesInDirectory(const kwsys_stl::string& na
{
DIR* dir = opendir(name.c_str());
if (!dir)
{
return 0;
}
unsigned long count = 0;
for (kwsys_dirent* d = readdir(dir); d; d = readdir(dir) )
{