summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-05-20 21:54:32 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-05-31 18:01:21 -0700
commit658d289f643769e3398470e9b85df16c3568e6f9 (patch)
tree11d3583d76a223913730801b6dbf6cdf38116856
parentd5a1a62b48d0dc646ef2bcc2941b8d4d068a4d41 (diff)
downloadxcb-util-658d289f643769e3398470e9b85df16c3568e6f9.tar.gz
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@oracle.com> Reviewed-by: Arnaud Fontaine <arnau@debian.org>
-rw-r--r--src/atoms.c2
1 files changed, 0 insertions, 2 deletions
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>