libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit e9965917df689c9bda5cb5a9300de36c8e0dae71
parent da7012adc958daf558f3dd699c11725b3c414e3f
Author: Evgeny Grin (Karlson2k) <k2k@narod.ru>
Date:   Tue, 27 Oct 2015 13:36:33 +0000

More support for old clang in deprecation macros

Diffstat:
Msrc/include/microhttpd.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h @@ -240,7 +240,7 @@ typedef SOCKET MHD_socket; /* VS .NET 2003 deprecation do not support custom messages */ #define _MHD_DEPR_FUNC(msg) __declspec(deprecated) #elif (__GNUC__+0 >= 5) || (defined (__clang__) && \ - (__clang_major__+0 >= 4 || (!defined(__apple_build_version__) && __clang_major__+0 >= 3))) + (__clang_major__+0 > 2 || (__clang_major__+0 == 2 && __clang_minor__ >= 9))) /* FIXME: earlier versions not tested */ #define _MHD_DEPR_FUNC(msg) __attribute__((deprecated(msg))) #elif defined (__clang__) || __GNUC__+0 > 3 || (__GNUC__+0 == 3 && __GNUC_MINOR__+0 >= 1) /* old GCC-style deprecation do not support custom messages */