From: Mattia Barbon Date: Tue, 4 Dec 2001 19:40:28 +0000 (+0000) Subject: Fix for very old w32api X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ee88cb34176b557f8c72425a4c71dc4830f52312 Fix for very old w32api git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/utils.cpp b/src/msw/utils.cpp index 453880612d..fcb1e515f6 100644 --- a/src/msw/utils.cpp +++ b/src/msw/utils.cpp @@ -454,7 +454,9 @@ bool wxGetDiskSpace(const wxString& path, wxLongLong *pTotal, wxLongLong *pFree) if ( path.empty() ) return FALSE; -#if defined(__WIN32__) && !defined(__GNUWIN32__) +// old w32api don't have ULARGE_INTEGER +#if defined(__WIN32__) && \ + (!defined(__GNUWIN32__) || wxCHECK_W32API_VERSION( 0, 3 )) // GetDiskFreeSpaceEx() is not available under original Win95, check for // it typedef BOOL (*GetDiskFreeSpaceEx_t)(LPCTSTR,