Re: dirent.h on MSVC

2011-09-21 Thread Bruno Haible
> 2011-09-17 Bruno Haible > > Add dependencies to new dirent related modules. > This patch was incomplete, leading to link errors on MSVC. I'm adding this patch: 2011-09-21 Bruno Haible Add dependencies to new dirent related modules. * modules/opendir (Depends-on

Re: dirent.h on MSVC

2011-09-21 Thread Bruno Haible
I did on 2011-09-12: > * lib/opendir.c: New file. This doesn't compile on mingw, because of NULL. Trivial fix: 2011-09-21 Bruno Haible opendir: Avoid compilation error on mingw. * lib/opendir.c: Include always. Include as well. * modules/opendir (Depends-on):

Re: dirent.h on MSVC

2011-09-17 Thread Bruno Haible
> 2011-09-12 Bruno Haible > > New modules 'opendir', 'readdir', 'rewinddir', 'closedir'. > As a consequence, modules which use opendir() etc. now need to depend on these modules. Otherwise compilation warnings and link errors occur on MSVC. 2011-09-17 Bruno Haible Add de

Re: dirent.h on MSVC

2011-09-12 Thread Bruno Haible
Here comes a working implementation of the function for MSVC. I'm not implementing telldir() and seekdir() because these functions - are marked as XSI in POSIX, - would be inefficient - are anyway unreliable (if the contents of the directory has changed). Note that - 'readdir' depends on

dirent.h on MSVC

2011-09-11 Thread Bruno Haible
The MSVC compilers don't have and associated functions. Here's a preliminary patch that will at least avoid to include a non-existent header file. 2011-09-11 Bruno Haible dirent: Don't assume exists. * lib/dirent.in.h: Include only if HAVE_DIRENT_H is 1. * m4/dirent