Replace HAVE_* tests with just checking for (__solaris__)
[free-sw/xcb/libxcb] / src / xcb.h
index ca58e3d..f720469 100644 (file)
--- a/src/xcb.h
+++ b/src/xcb.h
 #define __XCB_H__
 #include <sys/types.h>
 
-/* TODO: check for stdint in config? (HAVE_STDINT) fallback? */
+#if defined(__solaris__)
+#include <inttypes.h>
+#else
 #include <stdint.h>
+#endif
 
 /* 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 */
 
-#include <X11/X.h>
 #include <sys/uio.h>
 #include <pthread.h>