x11proto: Changes to 'master'

Alan Coopersmith alanc at kemper.freedesktop.org
Tue Aug 30 16:29:58 PDT 2011


 Xfuncproto.h.in |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

New commits:
commit c270f8bed465daff386967c5586eb3c8490b86e0
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Fri Aug 26 13:55:29 2011 -0700

    Fix Xfuncproto.h to work when #included in a C89-mode compilation
    
    Variable argument macros are not supported in C89, only C99 or a
    compiler-specific extension like gcc's.   Even just defining the
    macro causes builds with C89 compilers to fail, as they can't
    figure out how to handle #define _X_NONNULL(...), so only define
    the fallback for C99 compilers.
    
    Since this means C89 compilers will see _X_NONNULL unexpanded in
    sources, add a comment to remind users that this should only be
    used with #ifdef _X_NONNULL guards in public/exported API headers
    we install for other software to compile against, so that we don't
    break their builds.
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Reviewed-by: Julien Cristau <jcristau at debian.org>



More information about the xorg-commit mailing list