|
|
|
@ -59,15 +59,60 @@ FT_BEGIN_HEADER |
|
|
|
|
|
|
|
|
|
#undef HAVE_UNISTD_H |
|
|
|
|
#undef HAVE_FCNTL_H |
|
|
|
|
#undef HAVE_STDINT_H |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* There are systems (like the Texas Instruments 'C54x) where a `char' */ |
|
|
|
|
/* has 16 bits. ANSI C says that sizeof(char) is always 1. Since an */ |
|
|
|
|
/* `int' has 16 bits also for this system, sizeof(int) gives 1 which */ |
|
|
|
|
/* is probably unexpected. */ |
|
|
|
|
/* */ |
|
|
|
|
/* `CHAR_BIT' (defined in limits.h) gives the number of bits in a */ |
|
|
|
|
/* `char' type. */ |
|
|
|
|
|
|
|
|
|
#ifndef FT_CHAR_BIT |
|
|
|
|
#define FT_CHAR_BIT CHAR_BIT |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#undef FT_USE_AUTOCONF_SIZEOF_TYPES |
|
|
|
|
#ifdef FT_USE_AUTOCONF_SIZEOF_TYPES |
|
|
|
|
#undef SIZEOF_INT |
|
|
|
|
#undef SIZEOF_LONG |
|
|
|
|
#define FT_SIZEOF_INT SIZEOF_INT |
|
|
|
|
#define FT_SIZEOF_LONG SIZEOF_LONG |
|
|
|
|
#else /* ! FT_USE_AUTOCONF_SIZEOF_TYPES */ |
|
|
|
|
|
|
|
|
|
/* Following cpp computation of the bit length of int and long */ |
|
|
|
|
/* is copied from default include/freetype/config/ftconfig.h. */ |
|
|
|
|
/* If any improvement is required for this file, it should be */ |
|
|
|
|
/* applied to the original header file for the builders that */ |
|
|
|
|
/* does not use configure script. */ |
|
|
|
|
|
|
|
|
|
/* The size of an `int' type. */ |
|
|
|
|
#if FT_UINT_MAX == 0xFFFFUL |
|
|
|
|
#define FT_SIZEOF_INT (16 / FT_CHAR_BIT) |
|
|
|
|
#elif FT_UINT_MAX == 0xFFFFFFFFUL |
|
|
|
|
#define FT_SIZEOF_INT (32 / FT_CHAR_BIT) |
|
|
|
|
#elif FT_UINT_MAX > 0xFFFFFFFFUL && FT_UINT_MAX == 0xFFFFFFFFFFFFFFFFUL |
|
|
|
|
#define FT_SIZEOF_INT (64 / FT_CHAR_BIT) |
|
|
|
|
#else |
|
|
|
|
#error "Unsupported size of `int' type!" |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/* The size of a `long' type. A five-byte `long' (as used e.g. on the */ |
|
|
|
|
/* DM642) is recognized but avoided. */ |
|
|
|
|
#if FT_ULONG_MAX == 0xFFFFFFFFUL |
|
|
|
|
#define FT_SIZEOF_LONG (32 / FT_CHAR_BIT) |
|
|
|
|
#elif FT_ULONG_MAX > 0xFFFFFFFFUL && FT_ULONG_MAX == 0xFFFFFFFFFFUL |
|
|
|
|
#define FT_SIZEOF_LONG (32 / FT_CHAR_BIT) |
|
|
|
|
#elif FT_ULONG_MAX > 0xFFFFFFFFUL && FT_ULONG_MAX == 0xFFFFFFFFFFFFFFFFUL |
|
|
|
|
#define FT_SIZEOF_LONG (64 / FT_CHAR_BIT) |
|
|
|
|
#else |
|
|
|
|
#error "Unsupported size of `long' type!" |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
#define FT_SIZEOF_INT SIZEOF_INT |
|
|
|
|
#define FT_SIZEOF_LONG SIZEOF_LONG |
|
|
|
|
|
|
|
|
|
#define FT_CHAR_BIT CHAR_BIT |
|
|
|
|
#endif /* ! FT_USE_AUTOCONF_SIZEOF_TYPES */ |
|
|
|
|
|
|
|
|
|
/* Preferred alignment of data */ |
|
|
|
|
#define FT_ALIGNMENT 8 |
|
|
|
|