148 /** |
148 /** |
149 * The attributed function always returns freshly allocated memory. |
149 * The attributed function always returns freshly allocated memory. |
150 */ |
150 */ |
151 #define cx_attr_malloc __attribute__((__malloc__)) |
151 #define cx_attr_malloc __attribute__((__malloc__)) |
152 |
152 |
153 #ifndef __clang__ |
153 #if !defined(__clang__) && __GNUC__ >= 11 |
154 /** |
154 /** |
155 * The pointer returned by the attributed function is supposed to be freed |
155 * The pointer returned by the attributed function is supposed to be freed |
156 * by @p freefunc. |
156 * by @p freefunc. |
157 * |
157 * |
158 * @param freefunc the function that shall be used to free the memory |
158 * @param freefunc the function that shall be used to free the memory |