[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Win32/VC.NET Build and <dirent.h>...
I've just finished setting up the 2.0.3 source to build on my
development machine at work. Since we use Visual Studio .NET here, I
decided to work towards building with Visual Studio .NET instead of
MingW.
The only problem, as a few others have pointed out, is that Windows
has no POSIX <dirent.h> interface. Instead, you are expected to use
FindFirstFile() and friends.
I have written a patch to src/common/util.c to use the Find* functions
#ifdef WIN32, but I wanted to know what the "official" solution was.
Obviously there's a working Win32 build (I hear there's actually two,
one of which at least uses VC.NET). Are you using a dirent.c
implementation, or is there a patch that isn't in the official
tarball?
I've not yet run my newly-built binary to make sure the code actually
works, but if no one else has patches for this I'll happily submit
them once I'm sure they work.
--Mike
PGP signature