rendered paste bodydiff --git a/xbmc/utils/WebServer.h b/xbmc/utils/WebServer.hindex edd3b46..921e12d 100644--- a/xbmc/utils/WebServer.h+++ b/xbmc/utils/WebServer.h@@ -56,16 +56,21 @@ public: private: static int AskForAuthentication (struct MHD_Connection *connection); static bool IsAuthenticated (CWebServer *server, struct MHD_Connection *connection);++#if (MHD_VERSION > 0x00040000) static int AnswerToConnection (void *cls, struct MHD_Connection *connection, const char *url, const char *method, const char *version, const char *upload_data, size_t *upload_data_size, void **con_cls);--#if (MHD_VERSION >= 0x00040001) static int ContentReaderCallback (void *cls, uint64_t pos, char *buf, int max);-#else //libmicrohttpd < 0.4.0+#else //libmicrohttpd <= 0.4.0 (including 0.4.0pre1!)+ static int AnswerToConnection (void *cls, struct MHD_Connection *connection,+ const char *url, const char *method,+ const char *version, const char *upload_data,+ unsigned int *upload_data_size, void **con_cls); static int ContentReaderCallback (void *cls, size_t pos, char *buf, int max); #endif+ static void ContentReaderFreeCallback (void *cls); static int JSONRPC(CWebServer *server, struct MHD_Connection *connection, const char *upload_data, size_t *upload_data_size); static int HttpApi(struct MHD_Connection *connection);