-
sof authored
Pair of new macros for checking how dirent.h is implemented. Needed to deal with versioning issues under mingw only, but won't do any harm on other plats. The macros are: - FP_READDIR_EOF_ERRNO checks what readdir() sets errno to upon reaching end of a directory. (that value is available as READDIR_ERRNO_EOF in mk/config.h). Up until recently, mingw's readdir() did set errno rather than just leaving it alone. - FP_DIRENT_FLAT_LAYOUT checks how 'struct dirent' is defined; defines config.h:STRUCT_DIRENT_FLAT_LAYOUT to 1 if 'struct dirent' is terminated with a d_name array. Up until recently, mingw didn't define it as such. To be hooked up to libraries/base/{include/HsBase.h,cbits/dirUtils.c} and quite possibly merged to STABLE.
34f3b031