summaryrefslogtreecommitdiff
path: root/pixman
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2006-06-25 14:42:27 +0200
committerCarl Worth <cworth@cworth.org>2006-06-25 14:42:27 +0200
commite32138aa93ba37d760af87294fbb47046bfe6dec (patch)
treee12e3cad023149169718c3873b3426a7c77933b2 /pixman
parent14ffde038038deda66973856a5f3b9442c8d3c7d (diff)
downloadcairo-e32138aa93ba37d760af87294fbb47046bfe6dec.tar.gz
Prefer using configure-generated variable for finding stdint.h or similar.
We were doing something more complicated originally, and that was because pixman.h was an installed public header file at one time. But that hasn't been the case for quite a long time.
Diffstat (limited to 'pixman')
-rw-r--r--pixman/src/pixman.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/pixman/src/pixman.h b/pixman/src/pixman.h
index e92522799..33734f24f 100644
--- a/pixman/src/pixman.h
+++ b/pixman/src/pixman.h
@@ -74,11 +74,13 @@ SOFTWARE.
* PERFORMANCE OF THIS SOFTWARE.
*/
-#if defined (__SVR4) && defined (__sun)
-# include <sys/int_types.h>
-#elif defined (__OpenBSD__) || defined (_AIX) || defined (__osf__) || defined (__hpux__)
+#if HAVE_STDINT_H
+# include <stdint.h>
+#elif HAVE_INTTYPES_H
# include <inttypes.h>
-#elif defined (_MSC_VER)
+#elif HAVE_SYS_INT_TYPES_H
+# include <sys/int_types.h>
+#elif defined(_MSC_VER)
typedef __int8 int8_t;
typedef unsigned __int8 uint8_t;
typedef __int16 int16_t;
@@ -88,7 +90,7 @@ SOFTWARE.
typedef __int64 int64_t;
typedef unsigned __int64 uint64_t;
#else
-# include <stdint.h>
+#error Cannot find definitions for fixed-width integral types (uint8_t, uint32_t, etc.)
#endif
#include "pixman-remap.h"