Skip to content
Snippets Groups Projects
Commit a3221c40 authored by rswindell's avatar rswindell
Browse files

Fix Borland build failure:

dirwrap.c 841: Declaration is not allowed here in function getfilesizetotal
parent 2ffb1c06
No related branches found
No related tags found
No related merge requests found
...@@ -826,6 +826,7 @@ uint64_t DLLCALL getfilesizetotal(const char *inpath) ...@@ -826,6 +826,7 @@ uint64_t DLLCALL getfilesizetotal(const char *inpath)
char path[MAX_PATH+1]; char path[MAX_PATH+1];
glob_t g; glob_t g;
uint gi; uint gi;
off_t size;
uint64_t total = 0; uint64_t total = 0;
SAFECOPY(path, inpath); SAFECOPY(path, inpath);
...@@ -838,7 +839,7 @@ uint64_t DLLCALL getfilesizetotal(const char *inpath) ...@@ -838,7 +839,7 @@ uint64_t DLLCALL getfilesizetotal(const char *inpath)
for(gi = 0; gi < g.gl_pathc; ++gi) { for(gi = 0; gi < g.gl_pathc; ++gi) {
if(*lastchar(g.gl_pathv[gi]) == '/') if(*lastchar(g.gl_pathv[gi]) == '/')
continue; continue;
off_t size = flength(g.gl_pathv[gi]); size = flength(g.gl_pathv[gi]);
if(size >= 1) if(size >= 1)
total += size; total += size;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment