[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-cvs
Subject:    CVS: cvs.openbsd.org: xenocara
From:       Jeremie Courreges-Anglas <jca () openbsd ! org>
Date:       2020-01-30 13:21:13
Message-ID: 58e64d0f126f5b41 () openbsd ! org
[Download RAW message or body]

CVSROOT:	/cvs
Module name:	xenocara
Changes by:	jca@cvs.openbsd.org	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@

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic