mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-26 01:31:30 -05:00
fixed compile with libmicrohttpd >= 0.9.20 (old version numbers are in hex)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8056 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
62dba4aee4
commit
b912ac656c
@ -10,8 +10,10 @@
|
|||||||
|
|
||||||
#include "api/JsonStream.h"
|
#include "api/JsonStream.h"
|
||||||
|
|
||||||
|
// old version number use hex, new ones use decimal numbers
|
||||||
#if MHD_VERSION < 0x00092000
|
// this is a hex number: 0x14 = 20
|
||||||
|
// -> 0.9.20
|
||||||
|
#if MHD_VERSION < 0x00091400
|
||||||
#define MHD_CONTENT_READER_END_OF_STREAM ((size_t) -1LL)
|
#define MHD_CONTENT_READER_END_OF_STREAM ((size_t) -1LL)
|
||||||
/**
|
/**
|
||||||
* Create a response object. The response object can be extended with
|
* Create a response object. The response object can be extended with
|
||||||
@ -201,7 +203,7 @@ public:
|
|||||||
MHD_destroy_response(resp);
|
MHD_destroy_response(resp);
|
||||||
return MHD_YES;
|
return MHD_YES;
|
||||||
}
|
}
|
||||||
#if MHD_VERSION >= 0x00092000
|
#if MHD_VERSION >= 0x00091400
|
||||||
static ssize_t contentReadercallback(void *cls, uint64_t pos, char *buf, size_t max)
|
static ssize_t contentReadercallback(void *cls, uint64_t pos, char *buf, size_t max)
|
||||||
#else // old version
|
#else // old version
|
||||||
static int contentReadercallback(void *cls, uint64_t pos, char *buf, int max)
|
static int contentReadercallback(void *cls, uint64_t pos, char *buf, int max)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user