summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/talloc/talloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/talloc/talloc.h b/lib/talloc/talloc.h
index 0154bf3bbf6..afa0e85d195 100644
--- a/lib/talloc/talloc.h
+++ b/lib/talloc/talloc.h
@@ -107,7 +107,7 @@ typedef void TALLOC_CTX;
#endif
#ifndef _DEPRECATED_
-#ifdef HAVE___ATTRIBUTE__
+#if __has_attribute(deprecated) || (__GNUC__ >= 3)
#define _DEPRECATED_ __attribute__ ((deprecated))
#else
#define _DEPRECATED_