| version 1.1 | version 1.2 | |||
|---|---|---|---|---|
| 
 | 
 | |||
| return getdiskfree(); | return getdiskfree(); | |||
| #else | #else | |||
| #ifdef __WINDOWS__ | #ifdef __WINDOWS__ | |||
| ULONG cbCluster = 0; | DWORD cbCluster = 0; | |||
| ULONG cClusters = 0; | DWORD cClusters = 0; | |||
| GetDiskFreeSpace ( | GetDiskFreeSpace ( | |||
| NULL, | NULL, | |||
| (int *) &cbCluster, | &cbCluster, | |||
| NULL, | NULL, | |||
| (int *) &cClusters, | &cClusters, | |||
| NULL); | NULL); | |||
| return cbCluster * cClusters; | return cbCluster * cClusters; | 
| Legend: | |
| line(s) removed in v.1.1 | |
| line(s) changed | |
| line(s) added in v.1.2 | |