From 322659703d7c52d45ba3962b8386ac5f61e403db Mon Sep 17 00:00:00 2001 From: Soren Sandmann Pedersen Date: Tue, 15 May 2007 12:13:01 -0400 Subject: [PATCH] Replace hack to get standard integer types with #if/#elif construction --- pixman/pixman.h | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/pixman/pixman.h b/pixman/pixman.h index 5159c4b..6968e9c 100644 --- a/pixman/pixman.h +++ b/pixman/pixman.h @@ -69,22 +69,14 @@ SOFTWARE. #ifndef PIXMAN_H__ #define PIXMAN_H__ -/* FIXME: bad hack to avoid including config.h in - * an installed header. This should probably be donw - * with an installed pixman-config.h header - */ -#define HAVE_STDINT_H 1 - /* * Standard integers */ -#if HAVE_STDINT_H -# include -#elif HAVE_INTTYPES_H -# include -#elif HAVE_SYS_INT_TYPES_H -# include -#elif defined(_MSC_VER) +#if defined (__SVR4) && defined (__sun) +# include +#elif defined (__OpenBSSD__) +# include +#elif defined (_MSC_VER) typedef __int8 int8_t; typedef unsigned __int8 uint8_t; typedef __int16 int16_t; @@ -94,7 +86,7 @@ typedef unsigned __int32 uint32_t; typedef __int64 int64_t; typedef unsigned __int64 uint64_t; #else -# error Cannot find definitions for fixed-width integral types (uint8_t, uint32_t, etc.) +# include #endif /* -- 2.7.4