]> git.ipfire.org Git - thirdparty/kmod.git/commit
Add configure check for _Static_assert()
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 6 Sep 2013 13:27:04 +0000 (15:27 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 6 Sep 2013 14:06:19 +0000 (11:06 -0300)
commitdc8ed09f8f21d17ef9481001683d7edfdb308983
tree1a8bf2807d8a3aea3d0a9daf39b105a1d2603cee
parent7e0385c47ae7c313a59de3ea431af7b5d18807d7
Add configure check for _Static_assert()

Commit 8efede20ef ("Use _Static_assert") introduced the usage of
_Static_assert(). However, _Static_assert() is a fairly new thing,
since it was introduced only in gcc 4.6. In order to support older
compilers, this patch adds a configure.in test that checks whether
_Static_assert() is usable or not, and adjust the behavior of the
assert_cc() macro accordingly.
configure.ac
libkmod/macro.h