All pastes #1799267 Raw Edit

Miscellany

public diff v1 · immutable
#1799267 ·published 2010-02-17 00:55 UTC
rendered paste body
diff --git a/xbmc/utils/WebServer.h b/xbmc/utils/WebServer.hindex edd3b46..62fa6a3 100644--- a/xbmc/utils/WebServer.h+++ b/xbmc/utils/WebServer.h@@ -56,14 +56,18 @@ 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+  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);