Compiling current trunk (24c2b99d) under Windows 7, I get these errors (maybe
even with the spaces the lines are considered proper #define directives?)

src/shell.c:2074:0: warning: "stat" redefined
 #  define stat _stat
 ^
In file included from src/shell.c:108:0:
c:/Prog/mingw-w64/x86_64-5.3.0-win32-seh-rt_v4-rev0/mingw64/x86_64-w64-mingw32/include/sys/stat.h:268:0:
note: this is the location of the previous definition
 #define stat _stat64
 ^
src/shell.c:2073:20: warning: 'struct TIMESPEC' declared inside parameter list
 #  define timespec TIMESPEC
                    ^
src/shell.c:2073:20: warning: its scope is only this definition or
declaration, which is probably not what you want
src/shell.c:2073:20: warning: 'struct TIMESPEC' declared inside parameter list
 #  define timespec TIMESPEC
                    ^
src/shell.c:2073:20: warning: 'struct TIMESPEC' declared inside parameter list
 #  define timespec TIMESPEC
                    ^
src/shell.c:2073:20: warning: 'struct TIMESPEC' declared inside parameter list
 #  define timespec TIMESPEC
                    ^
src/shell.c:2073:20: warning: 'struct TIMESPEC' declared inside parameter list
 #  define timespec TIMESPEC
                    ^
src/shell.c: In function 'writefileFunc':
src/shell.c:2327:9: warning: implicit declaration of function 'S_ISLNK'
[-Wimplicit-function-declaration]
     if( S_ISLNK(mode) ){
         ^
src/shell.c: At top level:
src/shell.c:2346:3: error: unknown type name 'DIR'
   DIR *pDir;                 /* From opendir() */
   ^
src/shell.c: In function 'fsdirResetCursor':
src/shell.c:2422:22: warning: implicit declaration of function 'closedir'
[-Wimplicit-function-declaration]
     if( pLvl->pDir ) closedir(pLvl->pDir);
                      ^
src/shell.c: In function 'fsdirNext':
src/shell.c:2484:18: warning: implicit declaration of function 'opendir'
[-Wimplicit-function-declaration]
     pLvl->pDir = opendir(pLvl->zDir);
                  ^
src/shell.c:2484:16: warning: assignment makes pointer from integer without a
cast [-Wint-conversion]
     pLvl->pDir = opendir(pLvl->zDir);
                ^
src/shell.c:2493:29: warning: implicit declaration of function 'readdir'
[-Wimplicit-function-declaration]
     struct dirent *pEntry = readdir(pLvl->pDir);
                             ^
src/shell.c:2493:29: warning: initialization makes pointer from integer
without a cast [-Wint-conversion]
src/shell.c:2495:17: error: dereferencing pointer to incomplete type 'struct
DIRENT'
       if( pEntry->d_name[0]=='.' ){
                 ^
make: *** [wbld/shell.o] Error 1
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to