From b46677428b315ce87a317d0f34c83120c188bc87 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Tue, 27 Feb 2007 11:58:52 +0100 Subject: Don't use stdint.h, Msvc doesn't provide it --- src/harfbuzz-global.h | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) (limited to 'src/harfbuzz-global.h') diff --git a/src/harfbuzz-global.h b/src/harfbuzz-global.h index eb2544f..bb5d75b 100644 --- a/src/harfbuzz-global.h +++ b/src/harfbuzz-global.h @@ -11,7 +11,6 @@ #ifndef HARFBUZZ_GLOBAL_H #define HARFBUZZ_GLOBAL_H -#include #include #include @@ -25,26 +24,33 @@ HB_BEGIN_HEADER -typedef uint8_t HB_Bool; +typedef char hb_int8; +typedef unsigned char hb_uint8; +typedef short hb_int16; +typedef unsigned short hb_uint16; +typedef int hb_int32; +typedef unsigned int hb_uint32; -typedef uint8_t HB_Byte; -typedef uint16_t HB_UShort; -typedef uint32_t HB_UInt; -typedef int8_t HB_Char; -typedef int16_t HB_Short; -typedef int32_t HB_Int; +typedef hb_uint8 HB_Bool; -typedef uint16_t HB_UChar16; -typedef uint32_t HB_UChar32; -typedef uint32_t HB_Glyph; -typedef int32_t HB_Fixed; /* 26.6 */ +typedef hb_uint8 HB_Byte; +typedef hb_uint16 HB_UShort; +typedef hb_uint32 HB_UInt; +typedef hb_int8 HB_Char; +typedef hb_int16 HB_Short; +typedef hb_int32 HB_Int; + +typedef hb_uint16 HB_UChar16; +typedef hb_uint32 HB_UChar32; +typedef hb_uint32 HB_Glyph; +typedef hb_int32 HB_Fixed; /* 26.6 */ #define HB_FIXED_CONSTANT(v) ((v) * 64) -typedef int32_t HB_16Dot16; /* 16.16 */ +typedef hb_int32 HB_16Dot16; /* 16.16 */ typedef void * HB_Pointer; -typedef uint32_t HB_Tag; +typedef hb_uint32 HB_Tag; #ifndef FALSE #define FALSE 0 -- cgit v1.2.3