Sun, 02 Mar 2025 18:30:38 +0100
fix compilation problems with gcc below version 11
src/cx/common.h | file | annotate | diff | comparison | revisions |
--- 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.