Fix: static_assert unavailable with glibc < 2.16
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 25 Nov 2021 21:02:29 +0000 (16:02 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 29 Nov 2021 15:37:37 +0000 (10:37 -0500)
commit7075c5a2f8f4f90a018d7d1ea8c6dadda609495d
tree7ffd8a833a94d2a78a6f656cf12073d5bdff0157
parentbff668bf532bb223c83455cb43aa775a6bdfd6f3
Fix: static_assert unavailable with glibc < 2.16

gcc 4.8 introduces support for C11, and gcc 4.6 introduces support for
_Static_assert. Therefore, using _Static_assert when C11 is detected is
always OK.

However, using static_assert in C11 depends on glibc >= 2.16. Even
though the minimum version requirement for glibc is not documented in
the README.md file, make a best effort to keep compatibility with older
glibc.

Fixes: #1331
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I33b65b839ea5ecd0f710179a7ef6fb6f5fda2e17
include/lttng/ust-compiler.h
This page took 0.025754 seconds and 4 git commands to generate.