From: Soren Sandmann Pedersen Date: Tue, 15 May 2007 16:13:01 +0000 (-0400) Subject: Replace hack to get standard integer types with #if/#elif construction X-Git-Tag: pixman-0.9.4~108 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=322659703d7c52d45ba3962b8386ac5f61e403db;p=platform%2Fupstream%2Fpixman.git Replace hack to get standard integer types with #if/#elif construction --- 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 /*