From: Björn Jacke Date: Sun, 24 May 2020 12:04:37 +0000 (+0200) Subject: ldb: also use portable __has_attribute macro to check for attribute support X-Git-Tag: ldb-2.2.0~349 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4041ee6ca942a0117e5454888af5987f19671e6;p=thirdparty%2Fsamba.git ldb: also use portable __has_attribute macro to check for attribute support Signed-off-by: Bjoern Jacke Reviewed-by: Andrew Bartlett --- diff --git a/lib/ldb/include/ldb.h b/lib/ldb/include/ldb.h index 3cba0f4d543..7f53e6420e1 100644 --- a/lib/ldb/include/ldb.h +++ b/lib/ldb/include/ldb.h @@ -89,7 +89,7 @@ struct ldb_val { #endif #ifndef _DEPRECATED_ -#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 ) +#if __has_attribute(deprecated) || ( (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 ) ) #define _DEPRECATED_ __attribute__ ((deprecated)) #else #define _DEPRECATED_