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

getfreediskspace now checks _ANONYMOUS_STRUCT for Win32 LARGE_INTEGER...

getfreediskspace now checks _ANONYMOUS_STRUCT for Win32 LARGE_INTEGER High/LowPart member names (needed for CygWin/winnt.h compatiblity).
parent 2206f050
No related branches found
No related tags found
No related merge requests found
......@@ -338,11 +338,18 @@ ulong DLLCALL getfreediskspace(char* path)
&size, // receives the number of bytes on disk
NULL)) // receives the free bytes on disk
return(0);
#ifdef _ANONYMOUS_STRUCT
if(avail.HighPart)
#else
if(avail.u.HighPart)
#endif
return(~0); /* 4GB max */
#ifdef _ANONYMOUS_STRUCT
return(avail.LowPart);
#else
return(avail.u.LowPart);
#endif
}
/* Windows 95 (old way), limited to 2GB */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment