kmod/shared
Thomas Petazzoni ecab65b35c shared/util.c: assert_cc() can only be used inside functions
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>
2017-06-05 10:07:00 -07:00
..
.gitignore Move generic util functions to shared directory 2014-10-03 00:33:25 -03:00
array.c Fix includes after change to build-sys 2015-01-02 12:41:01 -02:00
array.h Move array implementation to shared directory 2014-10-03 00:33:25 -03:00
hash.c Remove FSF mailing address 2014-12-25 23:41:34 -02:00
hash.h Move hash implementation to shared directory 2014-10-03 00:40:11 -03:00
macro.h shared: avoid checking for __STDC_VERSION__ 2015-02-26 13:15:14 -03:00
missing.h Move missing.h to shared directory 2014-10-03 00:31:10 -03:00
scratchbuf.c Add scratchbuf implementation 2016-08-15 10:26:42 -03:00
scratchbuf.h shared: make scratchbuf_str static 2016-11-10 22:14:27 -02:00
strbuf.c Remove FSF mailing address 2014-12-25 23:41:34 -02:00
strbuf.h shared: rename prefixes of strbuf functions 2014-10-11 13:25:51 -03:00
util.c shared/util.c: assert_cc() can only be used inside functions 2017-06-05 10:07:00 -07:00
util.h util: use UINT64_MAX 2015-03-23 23:47:23 -03:00