aboutsummaryrefslogtreecommitdiff
path: root/src/include/microhttpd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/microhttpd.h')
-rw-r--r--src/include/microhttpd.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index a9c5a440..b97652c9 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -198,6 +198,7 @@ typedef SOCKET MHD_socket;
198 */ 198 */
199#ifdef MHD_NO_DEPRECATION 199#ifdef MHD_NO_DEPRECATION
200#define _MHD_DEPR_MACRO(msg) 200#define _MHD_DEPR_MACRO(msg)
201#define _MHD_DEPR_FUNC(msg)
201#endif /* MHD_NO_DEPRECATION */ 202#endif /* MHD_NO_DEPRECATION */
202 203
203#ifndef _MHD_DEPR_MACRO 204#ifndef _MHD_DEPR_MACRO
@@ -221,6 +222,24 @@ typedef SOCKET MHD_socket;
221#endif 222#endif
222#endif /* _MHD_DEPR_MACRO */ 223#endif /* _MHD_DEPR_MACRO */
223 224
225#ifndef _MHD_DEPR_FUNC
226#if defined(_MSC_FULL_VER) && _MSC_VER+0 >= 1400
227#define _MHD_DEPR_FUNC(msg) __declspec(deprecated(msg))
228#elif defined(_MSC_FULL_VER) && _MSC_VER+0 >= 1310
229/* VS .NET 2003 deprecation do not support custom messages */
230#define _MHD_DEPR_FUNC(msg) __declspec(deprecated)
231#elif defined (__clang__) && \
232 (__clang_major__+0 >= 4 || (!defined(__apple_build_version__) && __clang_major__+0 >= 3))
233#define _MHD_DEPR_FUNC(msg) __attribute__((deprecated(msg)))
234#elif defined (__clang__) || __GNUC__+0 > 3 || (__GNUC__+0 == 3 && __GNUC_MINOR__+0 >= 1)
235/* GCC-style deprecation do not support custom messages */
236#define _MHD_DEPR_FUNC(msg) __attribute__((__deprecated__))
237/* #elif defined(SOMEMACRO) */ /* add compiler-specific macros here if required */
238#else /* other compilers */
239#define _MHD_DEPR_FUNC(msg)
240#endif
241#endif /* _MHD_DEPR_FUNC */
242
224/** 243/**
225 * Not all architectures and `printf()`'s support the `long long` type. 244 * Not all architectures and `printf()`'s support the `long long` type.
226 * This gives the ability to replace `long long` with just a `long`, 245 * This gives the ability to replace `long long` with just a `long`,