mirror of
https://github.com/samba-team/samba.git
synced 2025-01-24 02:04:21 +03:00
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>
This commit is contained in:
parent
2889baeec4
commit
de74886420
@ -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_
|
||||
|
Loading…
x
Reference in New Issue
Block a user