[Xcb-commit] src

Alan Coopersmith alanc at kemper.freedesktop.org
Fri May 31 18:01:49 PDT 2013


 src/atoms.c |    2 --
 1 file changed, 2 deletions(-)

New commits:
commit 658d289f643769e3398470e9b85df16c3568e6f9
Author: Alan Coopersmith <alan.coopersmith at oracle.com>
Date:   Mon May 20 21:54:32 2013 -0700

    atoms.c: #include <stdio.h> for vsnprintf case, not just vasprintf
    
    Both forms of v*printf() function need <stdio.h>, so include it
    unconditionally.  Fixes https://bugs.freedesktop.org/show_bug.cgi?id=64807
    
    Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
    Reviewed-by: Arnaud Fontaine <arnau at debian.org>

diff --git a/src/atoms.c b/src/atoms.c
index 7b3aec6..e9133a6 100644
--- a/src/atoms.c
+++ b/src/atoms.c
@@ -1,9 +1,7 @@
 /* Rely on vasprintf (GNU extension) instead of vsnprintf if
    possible... */
-#ifdef HAVE_VASPRINTF
 #define _GNU_SOURCE
 #include <stdio.h>
-#endif
 
 #include <xcb/xcb.h>
 #include <stdlib.h>


More information about the xcb-commit mailing list