hello
I'm trying to make amule version 2.0.0+rc8 on windows to include some adds to de code.
when compiling I found the following error:
Compiling src/CFile.cpp
src/CFile.cpp: In member function `wxString CDirIterator::FindNextFileA()':
src/CFile.cpp:636: error: 'struct dirent' has no member named 'd_type'
src/CFile.cpp:637: error: `DT_DIR' undeclared (first use this function)
src/CFile.cpp:637: error: (Each undeclared identifier is reported only once for each function it appears in.)
src/CFile.cpp:644: error: `DT_REG' undeclared (first use this function)
make: *** [Debug/CFile.o] Error 1
the header file dirent.h included in CFile.h have a struct dirent
struct dirent
{
long d_ino; /* Always zero. */
unsigned short d_reclen; /* Always zero. */
unsigned short d_namlen; /* Length of name in d_name. */
char d_name[FILENAME_MAX]; /* File name. */
};
but no attribut d_type exist.
i use mingw-3.2.0-rc3,msysdtk-1.0.1.
under debian the dirent.h in /usr/include have the correct struct dirent with the d_type attribut .
Can anybody help me?