Minor updates to [232] and [233]. Use __GNUC__ define instead of CYGWIN
This commit is contained in:
parent
794710a0bd
commit
62e06185f8
5
main.cpp
5
main.cpp
|
@ -71,10 +71,13 @@ static void RecursiveAddFiles( std::vector<std::string> &filenames, const char p
|
||||||
}
|
}
|
||||||
findclose(&f);
|
findclose(&f);
|
||||||
#else
|
#else
|
||||||
|
// gcc / cygwin..
|
||||||
glob_t glob_results;
|
glob_t glob_results;
|
||||||
#ifndef CYGWIN
|
#ifdef __GNUC__
|
||||||
|
// gcc..
|
||||||
glob("*", GLOB_ONLYDIR, 0, &glob_results);
|
glob("*", GLOB_ONLYDIR, 0, &glob_results);
|
||||||
#else
|
#else
|
||||||
|
// cygwin..
|
||||||
glob("*", 0, 0, &glob_results);
|
glob("*", 0, 0, &glob_results);
|
||||||
#endif
|
#endif
|
||||||
for ( unsigned int i = 0; i < glob_results.gl_pathc; i++ )
|
for ( unsigned int i = 0; i < glob_results.gl_pathc; i++ )
|
||||||
|
|
Loading…
Reference in New Issue