This is the dirent part from libmingw32, separated for MSVC user's
benefit.
