no readdir_r on windows; refs #7
This commit is contained in:
@@ -361,7 +361,8 @@ namespace mrw {
|
|||||||
static const std::string D("."), DD("..");
|
static const std::string D("."), DD("..");
|
||||||
static dirent* fake;
|
static dirent* fake;
|
||||||
# if defined(WIN32) || defined(_WIN32) || defined(__MINGW32__)
|
# if defined(WIN32) || defined(_WIN32) || defined(__MINGW32__)
|
||||||
if (!(_entry.entry()=readdir(_dir))) return false;
|
if (!(fake=readdir(_dir))) return false;
|
||||||
|
_entry.entry()=*fake;
|
||||||
# else
|
# else
|
||||||
if (readdir_r(_dir, &_entry.entry(), &fake) || !fake) return false;
|
if (readdir_r(_dir, &_entry.entry(), &fake) || !fake) return false;
|
||||||
# endif
|
# endif
|
||||||
|
Reference in New Issue
Block a user