projects
/
free-sw
/
xcb
/
libxcb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix build on Solaris (use inttypes.h)
[free-sw/xcb/libxcb]
/
src
/
xcb.h
diff --git
a/src/xcb.h
b/src/xcb.h
index
85d0658
..
e19b19d
100644
(file)
--- a/
src/xcb.h
+++ b/
src/xcb.h
@@
-29,8
+29,11
@@
#define __XCB_H__
#include <sys/types.h>
#define __XCB_H__
#include <sys/types.h>
-/* TODO: check for stdint in config? (HAVE_STDINT) fallback? */
+#if HAVE_STDINT_H
#include <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
/* FIXME: these names conflict with those defined in Xmd.h. */
#ifndef XMD_H
@@
-44,7
+47,6
@@
typedef int16_t INT16;
typedef int32_t INT32;
#endif /* XMD_H */
typedef int32_t INT32;
#endif /* XMD_H */
-#include <X11/X.h>
#include <sys/uio.h>
#include <pthread.h>
#include <sys/uio.h>
#include <pthread.h>
@@
-156,8
+158,7
@@
typedef struct {
} XCBVoidCookie;
} XCBVoidCookie;
-/* Include the generated xproto and xcb_types headers. */
-#include "xcb_types.h"
+/* Include the generated xproto header. */
#include "xproto.h"
#include "xproto.h"