GNOME Bug 652227 - Unconditional use of stdint.h
This commit is contained in:
parent
20503ccd57
commit
902ab866f2
@ -39,20 +39,31 @@
|
|||||||
|
|
||||||
HB_BEGIN_DECLS
|
HB_BEGIN_DECLS
|
||||||
|
|
||||||
|
#if !defined (HB_DONT_DEFINE_STDINT)
|
||||||
|
|
||||||
#ifdef _MSC_VER
|
#if defined (_SVR4) || defined (SVR4) || defined (__OpenBSD__) || \
|
||||||
typedef signed char int8_t;
|
defined (_sgi) || defined (__sun) || defined (sun) || \
|
||||||
typedef unsigned char uint8_t;
|
defined (__digital__) || defined (__HP_cc)
|
||||||
typedef signed short int16_t;
|
# include <inttypes.h>
|
||||||
typedef unsigned short uint16_t;
|
#elif defined (_AIX)
|
||||||
typedef signed int int32_t;
|
# include <sys/inttypes.h>
|
||||||
typedef unsigned int uint32_t;
|
/* VS 2010 (_MSC_VER 1600) has stdint.h */
|
||||||
typedef signed long long int64_t;
|
#elif defined (_MSC_VER) && _MSC_VER < 1600
|
||||||
typedef unsigned long long uint64_t;
|
typedef __int8 int8_t;
|
||||||
|
typedef unsigned __int8 uint8_t;
|
||||||
|
typedef __int16 int16_t;
|
||||||
|
typedef unsigned __int16 uint16_t;
|
||||||
|
typedef __int32 int32_t;
|
||||||
|
typedef unsigned __int32 uint32_t;
|
||||||
|
typedef __int64 int64_t;
|
||||||
|
typedef unsigned __int64 uint64_t;
|
||||||
#else
|
#else
|
||||||
#include <stdint.h>
|
# include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
typedef int hb_bool_t;
|
typedef int hb_bool_t;
|
||||||
|
|
||||||
typedef uint32_t hb_codepoint_t;
|
typedef uint32_t hb_codepoint_t;
|
||||||
|
Loading…
Reference in New Issue
Block a user