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

Sascha Wildner swildner at crater.dragonflybsd.org
Sun Sep 15 12:34:53 PDT 2013


commit 91c5bb9b968b3d78abd1649ec5cb204d7eef1219
Author: Sascha Wildner <saw at online.de>
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):
    
    #define _GL_VERIFY_TYPE(R, DIAGNOSTIC)  \
         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(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/91c5bb9b968b3d78abd1649ec5cb204d7eef1219


-- 
DragonFly BSD source repository



More information about the Commits mailing list