summaryrefslogtreecommitdiff
path: root/include/X11/Xauth.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/X11/Xauth.h')
-rw-r--r--include/X11/Xauth.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/X11/Xauth.h b/include/X11/Xauth.h
index 51e913f..7b9a23d 100644
--- a/include/X11/Xauth.h
+++ b/include/X11/Xauth.h
@@ -78,8 +78,8 @@ _XFUNCPROTOBEGIN
#endif
#if __has_attribute(malloc)
-# if defined(__clang__)
-/* Clang does not support the optional deallocator argument */
+# if defined(__clang__) || (defined(__GNUC__) && __GNUC__ < 11)
+/* Clang or gcc do not support the optional deallocator argument */
# define XAU_MALLOC_ATTRIBUTE(X) __attribute__((malloc))
# else
# define XAU_MALLOC_ATTRIBUTE(X) __attribute__((malloc X))