mirror of
https://github.com/AuxXxilium/kmod.git
synced 2024-11-23 23:10:53 +07:00
ecab65b35c
shared/macro.h has two versions of assert_cc, one that uses gcc _Static_assert(), which requires recent enough gcc versions, and one that uses a fake array to trigger a build error. The latter can only work inside functions, so assert_cc() should only be used inside functions. Fixes the following build failure when building kmod with old gcc versions such as gcc 4.3.x: shared/util.c:52: error: expected identifier or '(' before 'do' shared/util.c:52: error: expected identifier or '(' before 'while' Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> |
||
---|---|---|
.. | ||
.gitignore | ||
array.c | ||
array.h | ||
hash.c | ||
hash.h | ||
macro.h | ||
missing.h | ||
scratchbuf.c | ||
scratchbuf.h | ||
strbuf.c | ||
strbuf.h | ||
util.c | ||
util.h |