commit 1061f6809d6927d0fe899c48fbc5ebcb33663bae
parent e52e1575df8f09bfa50ffd0847e37ceb646540f3
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Wed, 3 Jun 2015 21:28:14 +0000
microhttpd.h: print deprecation messages if MHD_create_response_from_data() is used
Diffstat:
2 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
@@ -2005,6 +2005,7 @@ MHD_create_response_from_callback (uint64_t size,
* @deprecated use #MHD_create_response_from_buffer instead
* @ingroup response
*/
+_MHD_DEPR_FUNC("MHD_create_response_from_data() is deprecated, use MHD_create_response_from_buffer()") \
_MHD_EXTERN struct MHD_Response *
MHD_create_response_from_data (size_t size,
void *data,
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c
@@ -24,6 +24,8 @@
* @author Christian Grothoff
*/
+#define MHD_NO_DEPRECATION 1
+
#include "internal.h"
#include "response.h"