[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r35860 - libmicrohttpd/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r35860 - libmicrohttpd/src/include |
Date: |
Wed, 3 Jun 2015 23:28:05 +0200 |
Author: Karlson2k
Date: 2015-06-03 23:28:05 +0200 (Wed, 03 Jun 2015)
New Revision: 35860
Modified:
libmicrohttpd/src/include/microhttpd.h
Log:
microhttpd.h: add defines for deprecating functions
Modified: libmicrohttpd/src/include/microhttpd.h
===================================================================
--- libmicrohttpd/src/include/microhttpd.h 2015-06-03 21:27:58 UTC (rev
35859)
+++ libmicrohttpd/src/include/microhttpd.h 2015-06-03 21:28:05 UTC (rev
35860)
@@ -198,6 +198,7 @@
*/
#ifdef MHD_NO_DEPRECATION
#define _MHD_DEPR_MACRO(msg)
+#define _MHD_DEPR_FUNC(msg)
#endif /* MHD_NO_DEPRECATION */
#ifndef _MHD_DEPR_MACRO
@@ -221,6 +222,24 @@
#endif
#endif /* _MHD_DEPR_MACRO */
+#ifndef _MHD_DEPR_FUNC
+#if defined(_MSC_FULL_VER) && _MSC_VER+0 >= 1400
+#define _MHD_DEPR_FUNC(msg) __declspec(deprecated(msg))
+#elif defined(_MSC_FULL_VER) && _MSC_VER+0 >= 1310
+/* VS .NET 2003 deprecation do not support custom messages */
+#define _MHD_DEPR_FUNC(msg) __declspec(deprecated)
+#elif defined (__clang__) && \
+ (__clang_major__+0 >= 4 || (!defined(__apple_build_version__) &&
__clang_major__+0 >= 3))
+#define _MHD_DEPR_FUNC(msg) __attribute__((deprecated(msg)))
+#elif defined (__clang__) || __GNUC__+0 > 3 || (__GNUC__+0 == 3 &&
__GNUC_MINOR__+0 >= 1)
+/* GCC-style deprecation do not support custom messages */
+#define _MHD_DEPR_FUNC(msg) __attribute__((__deprecated__))
+/* #elif defined(SOMEMACRO) */ /* add compiler-specific macros here if
required */
+#else /* other compilers */
+#define _MHD_DEPR_FUNC(msg)
+#endif
+#endif /* _MHD_DEPR_FUNC */
+
/**
* Not all architectures and `printf()`'s support the `long long` type.
* This gives the ability to replace `long long` with just a `long`,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r35860 - libmicrohttpd/src/include,
gnunet <=