tevent.h: use HAVE___ATTRIBUTE__ instead of __GNUC__
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 23 Mar 2016 02:26:49 +0000 (15:26 +1300)
committerKarolin Seeger <kseeger@samba.org>
Tue, 2 Aug 2016 10:46:24 +0000 (12:46 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11750

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
(cherry picked from commit a20ee62984bdb623f8fa55a9900cb69a99bf38e6)

lib/tevent/tevent.h

index cb955077938e1c9053bef4501b472cad44dfad10..cc6b15e29a782b19a43657960a8558f8d8f03fcc 100644 (file)
@@ -1752,7 +1752,7 @@ void tevent_thread_proxy_schedule(struct tevent_thread_proxy *tp,
 
 #ifdef TEVENT_DEPRECATED
 #ifndef _DEPRECATED_
-#if (__GNUC__ >= 3) && (__GNUC_MINOR__ >= 1 )
+#ifdef HAVE___ATTRIBUTE__
 #define _DEPRECATED_ __attribute__ ((deprecated))
 #else
 #define _DEPRECATED_