git: <sys/cdefs.h>: Fix the _Static_assert compatiblity macros.

Sascha Wildner swildner at
Sun Sep 15 12:34:53 PDT 2013

commit 91c5bb9b968b3d78abd1649ec5cb204d7eef1219
Author: Sascha Wildner <saw at>
Date:   Sun Sep 15 21:32:24 2013 +0200

    <sys/cdefs.h>: Fix the _Static_assert compatiblity macros.
    Remove the typedef hack (which was like our CTASSERT()). Emacs was
    choking on it because it is using _Static_assert like this (in verify.h):
         struct {                           \
           _Static_assert (R, DIAGNOSTIC);  \
           int _gl_dummy;                   \
    GCC supports it since 4.6, so take that into account too.

Summary of changes:
 sys/sys/cdefs.h | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list