summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2020-05-24 14:04:37 +0200
committerAndrew Bartlett <abartlet@samba.org>2020-05-24 23:55:36 +0000
commita4041ee6ca942a0117e5454888af5987f19671e6 (patch)
treefc472674b4b8d95147049b36e7dfde73049c6411 /lib
parent2f75b35e1b86a6eb094c7193e3dae76778197696 (diff)
downloadsamba-a4041ee6ca942a0117e5454888af5987f19671e6.tar.gz
ldb: also use portable __has_attribute macro to check for attribute support
Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/ldb/include/ldb.h2
1 files changed, 1 insertions, 1 deletions
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_