summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2020-10-08 12:10:35 +0200
committerAndrew Bartlett <abartlet@samba.org>2020-10-16 04:45:40 +0000
commitde748864201167ac1b4ecf4f121fbe2b110103e5 (patch)
treee38b78371570fa4cce6100748e36eae68a7c5754 /lib/replace
parent2889baeec4a1c66a1ffd78469ed916e3b292f4d0 (diff)
downloadsamba-de748864201167ac1b4ecf4f121fbe2b110103e5.tar.gz
replace: also use portable __has_attribute macro to check for "deprecated" attribute
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14526 Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/replace.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/replace/replace.h b/lib/replace/replace.h
index 6c78311f2d3..f7f6b653869 100644
--- a/lib/replace/replace.h
+++ b/lib/replace/replace.h
@@ -465,7 +465,7 @@ int rep_dlclose(void *handle);
#endif
#ifndef _DEPRECATED_
-#ifdef HAVE___ATTRIBUTE__
+#if __has_attribute(deprecated) || (__GNUC__ >= 3)
#define _DEPRECATED_ __attribute__ ((deprecated))
#else
#define _DEPRECATED_