diff options
author | gyunaev <gyunaev@svn> | 2010-12-21 07:43:42 +0000 |
---|---|---|
committer | gyunaev <gyunaev@svn> | 2010-12-21 07:43:42 +0000 |
commit | b3472c8637b78786d0688c95f2c45c85b988b2ac (patch) | |
tree | c4d469d2c9239c9cd283ac88e9e419e6e169ea91 | |
parent | ec6557b896d880944cadde99210e102a47edcea5 (diff) |
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
-rw-r--r-- | xbmc/utils/WebServer.cpp | 2 | ||||
-rw-r--r-- | 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); |