From b3472c8637b78786d0688c95f2c45c85b988b2ac Mon Sep 17 00:00:00 2001 From: gyunaev Date: Tue, 21 Dec 2010 07:43:42 +0000 Subject: MicroHTTPD version 0x00090000 (OpenSuSE 11.3) already requires ssize_t as callback function return value. git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@35663 568bbfeb-2a22-0410-94d2-cc84cf5bfa90 --- xbmc/utils/WebServer.cpp | 2 +- xbmc/utils/WebServer.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xbmc/utils/WebServer.cpp b/xbmc/utils/WebServer.cpp index 0fd19d0162..02afcbc941 100644 --- a/xbmc/utils/WebServer.cpp +++ b/xbmc/utils/WebServer.cpp @@ -332,7 +332,7 @@ int CWebServer::CreateMemoryDownloadResponse(struct MHD_Connection *connection, return ret; } -#if (MHD_VERSION >= 0x00090200) +#if (MHD_VERSION >= 0x00090000) ssize_t CWebServer::ContentReaderCallback (void *cls, uint64_t pos, char *buf, size_t max) #elif (MHD_VERSION >= 0x00040001) int CWebServer::ContentReaderCallback(void *cls, uint64_t pos, char *buf, int max) diff --git a/xbmc/utils/WebServer.h b/xbmc/utils/WebServer.h index fa3fe44fd6..ff0c5480cf 100644 --- a/xbmc/utils/WebServer.h +++ b/xbmc/utils/WebServer.h @@ -65,7 +65,7 @@ private: static int AskForAuthentication (struct MHD_Connection *connection); static bool IsAuthenticated (CWebServer *server, struct MHD_Connection *connection); -#if (MHD_VERSION >= 0x00090200) +#if (MHD_VERSION >= 0x00090000) static ssize_t ContentReaderCallback (void *cls, uint64_t pos, char *buf, size_t max); #elif (MHD_VERSION >= 0x00040001) static int ContentReaderCallback (void *cls, uint64_t pos, char *buf, int max); -- cgit v1.2.3