src/cx/common.h

changeset 1235
3e058f5ba5dc
parent 1227
0bf1c1fdf1e3
equal deleted inserted replaced
1234:6cdf81367b93 1235:3e058f5ba5dc
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

mercurial