diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 4bda4e07df..49bb910056 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,7 @@ +2001-09-16 20:40 GMT -3 Luiz Rafael Culik + *contrib/libct/files.c + * fixed compiler problem for MINGW + 2001-09-13 06:02 UTC+0100 Viktor Szakats * source/vm/arrays.c diff --git a/harbour/contrib/libct/files.c b/harbour/contrib/libct/files.c index 8fb1b94bf6..9c03a6fe34 100644 --- a/harbour/contrib/libct/files.c +++ b/harbour/contrib/libct/files.c @@ -78,14 +78,35 @@ static struct ffblk fsOldFiles; #include "dos.h" #include #endif -#if defined(HB_OS_WIN_32) +#if defined(HB_OS_WIN_32) || defined(__MINGW32__) static HANDLE hLastFind; static WIN32_FIND_DATA Lastff32; LPTSTR GetDate(FILETIME *rTime); LPTSTR GetTime(FILETIME *rTime); #include +/* + #if defined(__MINGW32__) + #define FA_RDONLY 1 + #define FA_HIDDEN 2 + #define FA_SYSTEM 4 + #define FA_LABEL 8 + #define FA_DIREC 16 + #define FA_ARCH 32 + #endif + */ #endif +#if !defined(FA_ARCH) + #define FA_RDONLY 1 /* R */ + #define FA_HIDDEN 2 /* H */ + #define FA_SYSTEM 4 /* S */ + #define FA_LABEL 8 /* V */ + #define FA_DIREC 16 /* D */ + #define FA_ARCH 32 /* A */ + #define FA_NORMAL 0 +#endif + + HB_FUNC(FILEATTR) { @@ -561,7 +582,7 @@ HB_FUNC(FILETIME) } -#if defined(HB_OS_WIN_32) +#if defined(HB_OS_WIN_32) || defined(__MINGW32__) #include