src/cx/common.h

changeset 1235
3e058f5ba5dc
parent 1227
0bf1c1fdf1e3
--- a/src/cx/common.h	Sun Mar 02 16:45:46 2025 +0100
+++ b/src/cx/common.h	Sun Mar 02 18:30:38 2025 +0100
@@ -150,7 +150,7 @@
  */
 #define cx_attr_malloc __attribute__((__malloc__))
 
-#ifndef __clang__
+#if !defined(__clang__) && __GNUC__ >= 11
 /**
  * The pointer returned by the attributed function is supposed to be freed
  * by @p freefunc.

mercurial