exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 9201af1f487ce8eb190d1d9d9f191b38a9d74ed5
parent f56b3e8619aafe36f6aea1e71a2c61bbf7fa699d
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue, 27 Aug 2024 01:09:19 +0200

compat with older MHD versions

Diffstat:
Mconfigure.ac | 1-
Msrc/include/taler_util.h | 9++++++++-
2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac @@ -231,7 +231,6 @@ AS_IF([test "x$curl" = x1],[ [curl=0]) ]) - # libcurl should be mutually exclusive AS_IF([test "$curl" = 1], AM_CONDITIONAL(HAVE_LIBCURL, true) diff --git a/src/include/taler_util.h b/src/include/taler_util.h @@ -32,11 +32,18 @@ #include "taler_amount_lib.h" #include "taler_crypto_lib.h" +#if MHD_VERSION < 0x00097701 +#define MHD_create_response_from_buffer_static (s,b) \ + MHD_create_response_from_buffer (s, \ + (const char *) b, \ + MHD_RESPMEM_PERSISTENT) +#endif + /** * Version of the Taler API, in hex. * Thus 0.8.4-1 = 0x00080401. */ -#define TALER_API_VERSION 0x00090401 +#define TALER_API_VERSION 0x000D0000 /** * Stringify operator.