summaryrefslogtreecommitdiff
path: root/pidl
diff options
context:
space:
mode:
Diffstat (limited to 'pidl')
-rw-r--r--pidl/lib/Parse/Pidl/Samba4/Python.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/Python.pm b/pidl/lib/Parse/Pidl/Samba4/Python.pm
index 76a094b625b..578e17d1cbc 100644
--- a/pidl/lib/Parse/Pidl/Samba4/Python.pm
+++ b/pidl/lib/Parse/Pidl/Samba4/Python.pm
@@ -2304,12 +2304,14 @@ $ndr_hdr_include
* functions
*/
#ifndef _MAYBE_UNUSED_
-#ifdef HAVE___ATTRIBUTE__
+#ifdef __has_attribute
+#if __has_attribute(unused)
#define _MAYBE_UNUSED_ __attribute__ ((unused))
#else
#define _MAYBE_UNUSED_
#endif
#endif
+#endif
/*
* These functions are here to ensure they can be optimized out by
* the compiler based on the constant input values