42#include FT_CONFIG_OPTIONS_H
43#include FT_CONFIG_STANDARD_LIBRARY_H
70#define FT_CHAR_BIT CHAR_BIT
75#if FT_UINT_MAX == 0xFFFFUL
76#define FT_SIZEOF_INT ( 16 / FT_CHAR_BIT )
77#elif FT_UINT_MAX == 0xFFFFFFFFUL
78#define FT_SIZEOF_INT ( 32 / FT_CHAR_BIT )
79#elif FT_UINT_MAX > 0xFFFFFFFFUL && FT_UINT_MAX == 0xFFFFFFFFFFFFFFFFUL
80#define FT_SIZEOF_INT ( 64 / FT_CHAR_BIT )
82#error "Unsupported size of `int' type!"
87#if FT_ULONG_MAX == 0xFFFFFFFFUL
88#define FT_SIZEOF_LONG ( 32 / FT_CHAR_BIT )
89#elif FT_ULONG_MAX > 0xFFFFFFFFUL && FT_ULONG_MAX == 0xFFFFFFFFFFUL
90#define FT_SIZEOF_LONG ( 32 / FT_CHAR_BIT )
91#elif FT_ULONG_MAX > 0xFFFFFFFFUL && FT_ULONG_MAX == 0xFFFFFFFFFFFFFFFFUL
92#define FT_SIZEOF_LONG ( 64 / FT_CHAR_BIT )
94#error "Unsupported size of `long' type!"
101#define FT_UNUSED( arg ) ( (arg) = (arg) )
123#if defined( __APPLE__ ) || ( defined( __MWERKS__ ) && defined( macintosh ) )
129#include "AvailabilityMacros.h"
131#if defined( __LP64__ ) && \
132 ( MAC_OS_X_VERSION_MIN_REQUIRED <= MAC_OS_X_VERSION_10_4 )
136#elif defined( __SC__ ) || defined( __MRC__ )
138#include "ConditionalMacros.h"
140#define FT_MACINTOSH 1
147#if defined( __sgi ) && !defined( __GNUC__ )
148#if defined( _COMPILER_VERSION ) && ( _COMPILER_VERSION >= 730 )
198 typedef signed XXX FT_Int32;
209 typedef unsigned XXX FT_UInt32;
233 typedef unsigned XXX FT_UInt64;
239#if FT_SIZEOF_INT == ( 32 / FT_CHAR_BIT )
241 typedef signed int FT_Int32;
242 typedef unsigned int FT_UInt32;
244#elif FT_SIZEOF_LONG == ( 32 / FT_CHAR_BIT )
246 typedef signed long FT_Int32;
247 typedef unsigned long FT_UInt32;
250#error "no 32bit type found -- please check your configuration files"
255#if FT_SIZEOF_INT >= ( 32 / FT_CHAR_BIT )
258 typedef unsigned int FT_UFast;
260#elif FT_SIZEOF_LONG >= ( 32 / FT_CHAR_BIT )
262 typedef long FT_Fast;
263 typedef unsigned long FT_UFast;
270#if FT_SIZEOF_LONG == ( 64 / FT_CHAR_BIT )
275#define FT_UINT64 unsigned long
284#elif !defined( __STDC__ ) || defined( FT_CONFIG_OPTION_FORCE_INT64 )
286#if defined( __STDC_VERSION__ ) && __STDC_VERSION__ >= 199901L
289#define FT_INT64 long long int
290#define FT_UINT64 unsigned long long int
292#elif defined( _MSC_VER ) && _MSC_VER >= 900
296#define FT_INT64 __int64
297#define FT_UINT64 unsigned __int64
299#elif defined( __BORLANDC__ )
306#define FT_INT64 __int64
307#define FT_UINT64 unsigned __int64
309#elif defined( __WATCOMC__ )
313#elif defined( __MWERKS__ )
316#define FT_INT64 long long int
317#define FT_UINT64 unsigned long long int
319#elif defined( __GNUC__ )
323#define FT_INT64 long long int
324#define FT_UINT64 unsigned long long int
332 typedef FT_UINT64 FT_UInt64;
339#define FT_UINT_TO_POINTER( x ) (void*)(unsigned __int64)(x)
341#define FT_UINT_TO_POINTER( x ) (void*)(unsigned long)(x)
352#define FT_BEGIN_STMNT do {
353#define FT_END_STMNT } while ( 0 )
354#define FT_DUMMY_STMNT FT_BEGIN_STMNT FT_END_STMNT
358#if ( ( defined( __GNUC__ ) && __GNUC__ >= 2 ) || \
359 ( defined( __IBMC__ ) && __IBMC__ >= 1210 && \
360 defined( __IBM__TYPEOF__ ) ) || \
361 ( defined( __SUNPRO_C ) && __SUNPRO_C >= 0x5110 && !__STDC__ ) )
362#define FT_TYPEOF( type ) ( __typeof__ ( type ) )
364#define FT_TYPEOF( type )
376#ifdef FT_MAKE_OPTION_SINGLE_OBJECT
378#define FT_LOCAL( x ) static x
379#define FT_LOCAL_DEF( x ) static x
384#define FT_LOCAL( x ) extern "C" x
385#define FT_LOCAL_DEF( x ) extern "C" x
387#define FT_LOCAL( x ) extern x
388#define FT_LOCAL_DEF( x ) x
393#define FT_LOCAL_ARRAY( x ) extern const x
394#define FT_LOCAL_ARRAY_DEF( x ) const x
406#define FT_BASE( x ) extern "C" x
408#define FT_BASE( x ) extern x
417#define FT_BASE_DEF( x ) x
419#define FT_BASE_DEF( x ) x
459#define FT_EXPORT( x ) extern "C" x
461#define FT_EXPORT( x ) extern x
468#define FT_EXPORT( x ) __declspec( dllexport ) x
470#define FT_EXPORT( x ) __declspec( dllimport ) x
481#define FT_EXPORT_DEF( x ) extern "C" x
483#define FT_EXPORT_DEF( x ) extern x
492#define FT_EXPORT_VAR( x ) extern "C" x
494#define FT_EXPORT_VAR( x ) extern x
529#ifndef FT_CALLBACK_DEF
531#define FT_CALLBACK_DEF( x ) extern "C" x
533#define FT_CALLBACK_DEF( x ) static x
537#ifndef FT_BASE_CALLBACK
539#define FT_BASE_CALLBACK( x ) extern "C" x
540#define FT_BASE_CALLBACK_DEF( x ) extern "C" x
542#define FT_BASE_CALLBACK( x ) extern x
543#define FT_BASE_CALLBACK_DEF( x ) x
547#ifndef FT_CALLBACK_TABLE
549#define FT_CALLBACK_TABLE extern "C"
550#define FT_CALLBACK_TABLE_DEF extern "C"
552#define FT_CALLBACK_TABLE extern
553#define FT_CALLBACK_TABLE_DEF
struct FT_Int64_ FT_Int64