From 5137a271b2f7f1dd4c56a7d62a7a94e34196f23f Mon Sep 17 00:00:00 2001 From: sireus Date: Sun, 1 Apr 2012 18:31:21 +0000 Subject: [PATCH] statvfs is posix-standardized git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@6779 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/stream.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/stream.cpp b/source/src/stream.cpp index 2faa01c5..c6f9ed2d 100644 --- a/source/src/stream.cpp +++ b/source/src/stream.cpp @@ -361,7 +361,7 @@ bool stream::getline(char *str, int len) return true; } -#ifdef __linux__ +#ifndef WIN32 #include const int64_t MINFSSIZE = 50000000; // 50MB #endif @@ -377,7 +377,7 @@ struct filestream : stream { if(file) return false; file = fopen(name, mode); -#ifdef __linux__ +#ifndef WIN32 struct statvfs buf; if(file && strchr(mode,'w')) {