X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FOSD%2FOSD_Disk.cxx;h=f6958494d41080c2b503a5e8cbadaf927c80828a;hp=967600442007bd78cf2b4bdffd2889cbc952166e;hb=9bf6baed3cc9306dc89329727734a9413f07b8da;hpb=aaf512f112894f9a583622ff19f5b775ba4be3bb diff --git a/src/OSD/OSD_Disk.cxx b/src/OSD/OSD_Disk.cxx index 9676004420..f6958494d4 100644 --- a/src/OSD/OSD_Disk.cxx +++ b/src/OSD/OSD_Disk.cxx @@ -12,7 +12,7 @@ // Alternatively, this file may be used under the terms of Open CASCADE // commercial license or contractual agreement. -#ifndef WNT +#ifndef _WIN32 #include #include @@ -23,16 +23,21 @@ const OSD_WhoAmI Iam = OSD_WDisk; extern "C" { #endif -#include +#if defined(__ANDROID__) + #include + #define statvfs statfs + #define fstatvfs fstatfs +#else + #include + int statvfs(const char *, struct statvfs *); +#endif #ifdef __cplusplus } -#endif +#endif #include -extern "C" {int statvfs(const char *, struct statvfs *); } - OSD_Disk::OSD_Disk() : myQuotaSize(0) {}