[Xcb-commit] xcb

Ian Osgood iano at kemper.freedesktop.org
Fri Jul 7 07:19:20 PDT 2006


 xcb/src/xcb.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

New commits:
diff-tree acba23bdf58f35ba6099520bba8cc81fac24e100 (from 9fe4adbe24571c06e1aebe8873689c5da029d366)
Author: Ian Osgood <iano at quirkster.com>
Date:   Fri Jul 7 07:18:41 2006 -0700

    Fix build on Solaris (use inttypes.h)

diff --git a/xcb/src/xcb.h b/xcb/src/xcb.h
index 639f583..e19b19d 100644
--- a/xcb/src/xcb.h
+++ b/xcb/src/xcb.h
@@ -29,8 +29,11 @@
 #define __XCB_H__
 #include <sys/types.h>
 
-/* TODO: check for stdint in config? (HAVE_STDINT) fallback? */
+#if HAVE_STDINT_H
 #include <stdint.h>
+#elif HAVE_INTTYPES_H
+#include <inttypes.h>
+#endif
 
 /* FIXME: these names conflict with those defined in Xmd.h. */
 #ifndef XMD_H


More information about the xcb-commit mailing list