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.
This commit is contained in:
Carl Worth 2006-06-25 14:42:27 +02:00
parent 14ffde0380
commit e32138aa93

View file

@ -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"