CVSROOT: /cvs Module name: xenocara Changes by: [email protected] 2020/01/30 06:21:13
Modified files:
lib/mesa/include: c11_compat.h
Log message:
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@
