Minor updates to [232] and [233]. Use __GNUC__ define instead of CYGWIN

This commit is contained in:
Daniel Marjamäki 2008-04-06 06:45:30 +00:00
parent 794710a0bd
commit 62e06185f8
1 changed files with 4 additions and 1 deletions

View File

@ -71,10 +71,13 @@ static void RecursiveAddFiles( std::vector<std::string> &filenames, const char p
}
findclose(&f);
#else
// gcc / cygwin..
glob_t glob_results;
#ifndef CYGWIN
#ifdef __GNUC__
// gcc..
glob("*", GLOB_ONLYDIR, 0, &glob_results);
#else
// cygwin..
glob("*", 0, 0, &glob_results);
#endif
for ( unsigned int i = 0; i < glob_results.gl_pathc; i++ )