1
0
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:
Björn Jacke 2020-10-08 12:10:35 +02:00 committed by Andrew Bartlett
parent 2889baeec4
commit de74886420

View File

@ -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_