diff options
author | Simon Hausmann <shausman@rhea.troll.no> | 2007-02-27 11:58:52 +0100 |
---|---|---|
committer | Simon Hausmann <shausman@rhea.troll.no> | 2007-03-28 12:52:35 +0200 |
commit | b46677428b315ce87a317d0f34c83120c188bc87 (patch) | |
tree | 7912206a85e36bf26aea01d89440cd71d33429a9 /src/harfbuzz-global.h | |
parent | 2bbd6dd6599b744083e163b60278d21b3ab53dd4 (diff) |
Don't use stdint.h, Msvc doesn't provide it
Diffstat (limited to 'src/harfbuzz-global.h')
-rw-r--r-- | src/harfbuzz-global.h | 34 |
1 files changed, 20 insertions, 14 deletions
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 <stdint.h> #include <stdlib.h> #include <string.h> @@ -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 |