commit d474f26d159b4ba9d84ca8100f98cab4ff2e2eef
parent 86c904a4be7d31a073e9943afbc08dbf0de5ef4f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date: Wed, 3 Jun 2015 21:27:58 +0000
microhttpd.h: print deprecation messages if MHD_LONG_LONG or MHD_LONG_LONG_PRINTF are defined or
if MHD_HTTP_METHOD_NOT_ACCEPTABLE is used
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
@@ -232,6 +232,8 @@ typedef SOCKET MHD_socket;
*/
#define MHD_LONG_LONG long long
#define MHD_UNSIGNED_LONG_LONG unsigned long long
+#else /* MHD_LONG_LONG */
+_MHD_DEPR_MACRO("Macro MHD_LONG_LONG is deprecated, use MHD_UNSIGNED_LONG_LONG")
#endif
/**
* Format string for printing a variable of type #MHD_LONG_LONG.
@@ -243,6 +245,8 @@ typedef SOCKET MHD_socket;
*/
#define MHD_LONG_LONG_PRINTF "ll"
#define MHD_UNSIGNED_LONG_LONG_PRINTF "%llu"
+#else /* MHD_LONG_LONG_PRINTF */
+_MHD_DEPR_MACRO("Macro MHD_LONG_LONG_PRINTF is deprecated, use MHD_UNSIGNED_LONG_LONG_PRINTF")
#endif
@@ -281,7 +285,8 @@ typedef SOCKET MHD_socket;
#define MHD_HTTP_METHOD_NOT_ALLOWED 405
#define MHD_HTTP_NOT_ACCEPTABLE 406
/** @deprecated */
-#define MHD_HTTP_METHOD_NOT_ACCEPTABLE 406
+#define MHD_HTTP_METHOD_NOT_ACCEPTABLE \
+ _MHD_DEPR_MACRO("Value MHD_HTTP_METHOD_NOT_ACCEPTABLE is deprecated, use MHD_HTTP_NOT_ACCEPTABLE") 406
#define MHD_HTTP_PROXY_AUTHENTICATION_REQUIRED 407
#define MHD_HTTP_REQUEST_TIMEOUT 408
#define MHD_HTTP_CONFLICT 409