Replace HAVE_* tests with just checking for (__solaris__)
authorEric Anholt <anholt@FreeBSD.org>
Tue, 25 Jul 2006 16:13:59 +0000 (09:13 -0700)
committerEric Anholt <anholt@FreeBSD.org>
Tue, 25 Jul 2006 16:13:59 +0000 (09:13 -0700)
The installed headers can't be relying on the presence of the internal
config.h defines, and it was breaking the xcb build for me as well due to
config.h not being included early enough.

src/xcb.h

index e19b19d..f720469 100644 (file)
--- a/src/xcb.h
+++ b/src/xcb.h
 #define __XCB_H__
 #include <sys/types.h>
 
-#if HAVE_STDINT_H
-#include <stdint.h>
-#elif HAVE_INTTYPES_H
+#if defined(__solaris__)
 #include <inttypes.h>
+#else
+#include <stdint.h>
 #endif
 
 /* FIXME: these names conflict with those defined in Xmd.h. */