(!defined(__GNUWIN32__) || wxCHECK_W32API_VERSION( 0, 3 ))
// GetDiskFreeSpaceEx() is not available under original Win95, check for
// it
- typedef BOOL (*GetDiskFreeSpaceEx_t)(LPCTSTR,
- PULARGE_INTEGER,
- PULARGE_INTEGER,
- PULARGE_INTEGER);
+ typedef BOOL (WINAPI *GetDiskFreeSpaceEx_t)(LPCTSTR,
+ PULARGE_INTEGER,
+ PULARGE_INTEGER,
+ PULARGE_INTEGER);
GetDiskFreeSpaceEx_t
pGetDiskFreeSpaceEx = (GetDiskFreeSpaceEx_t)::GetProcAddress
if ( pTotal )
{
- *pTotal = wxLongLong(bytesTotal.HighPart, bytesTotal.LowPart);
+ *pTotal = wxLongLong(bytesTotal.u.HighPart, bytesTotal.u.LowPart);
}
if ( pFree )
{
- *pFree = wxLongLong(bytesFree.HighPart, bytesFree.LowPart);
+ *pFree = wxLongLong(bytesFree.u.HighPart, bytesFree.u.LowPart);
}
}
else