diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2020-01-30 13:21:14 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2020-01-30 13:21:14 +0000 |
commit | 4d11554966fe5bb3e16ac17581390fd8c985eecf (patch) | |
tree | 95868d45569367662827cb0ffe80eb1150699bec /lib/libXvMC | |
parent | 38e3d39f2648f18273788d9a7eac240ab50521db (diff) |
Better checks for static_assert availability
When not in c++ or c11 mode:
- check for _Static_assert support in clang with __has_extension
- gcc implements _Static_assert starting with 4.6.0
- as a fallback, use a forward decl instead of ((void)0) so that
static_assert can be used at file scope (scope issue pointed out by
guenther@)
ok jsg@
Diffstat (limited to 'lib/libXvMC')
0 files changed, 0 insertions, 0 deletions