From 965ac7e00b381dd1472da496aba9b02feef18062 Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Sun, 27 Mar 2011 16:18:16 +0000 Subject: [PATCH] - commented out unused curl method so now it should be able to compile on older libcurl --- source/glest_game/main/main.cpp | 1 + source/shared_lib/sources/platform/posix/miniftpclient.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/source/glest_game/main/main.cpp b/source/glest_game/main/main.cpp index 9944a1fb..08c5c0fa 100644 --- a/source/glest_game/main/main.cpp +++ b/source/glest_game/main/main.cpp @@ -2124,6 +2124,7 @@ int glestMain(int argc, char** argv) { difftime(time(NULL),elapsed) <= 15;) { //sleep(150); } + sleep(25); } SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s Line: %d]\n",__FILE__,__FUNCTION__,__LINE__); diff --git a/source/shared_lib/sources/platform/posix/miniftpclient.cpp b/source/shared_lib/sources/platform/posix/miniftpclient.cpp index 06f5345f..cfffffa4 100644 --- a/source/shared_lib/sources/platform/posix/miniftpclient.cpp +++ b/source/shared_lib/sources/platform/posix/miniftpclient.cpp @@ -96,6 +96,7 @@ static size_t my_fwrite(void *buffer, size_t size, size_t nmemb, void *stream) { return fwrite(buffer, size, nmemb, out->stream); } +/* static long file_is_comming(struct curl_fileinfo *finfo,void *data,int remains) { struct FtpFile *out=(struct FtpFile *)data; @@ -171,6 +172,7 @@ static long file_is_downloaded(void *data) { } return CURL_CHUNK_END_FUNC_OK; } +*/ int file_progress(struct FtpFile *out,double download_total, double download_now, double upload_total,double upload_now) { //if(SystemFlags::VERBOSE_MODE_ENABLED) printf(" download progress [%f][%f][%f][%f] ",download_total,download_now,upload_total,upload_now);