From cc4c096a7e08ae96b3030fe27f871ce5b797f370 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 2 Nov 2009 18:13:17 -0500 Subject: [PATCH] MSVC has no stdint.h --- src/hb-common.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/hb-common.h b/src/hb-common.h index 11f64ed..1275b8c 100644 --- a/src/hb-common.h +++ b/src/hb-common.h @@ -27,7 +27,20 @@ #ifndef HB_COMMON_H #define HB_COMMON_H +#ifdef _MSC_VER +#warning "Not using stdint.h. Integer types may have wrong size." +typedef signed char int8_t; +typedef unsigned char uint8_t; +typedef signed short int16_t; +typedef unsigned short uint16_t; +typedef signed int int32_t; +typedef unsigned int uint32_t; +#ifndef __cplusplus +#define inline __inline +#endif +#else #include +#endif # ifdef __cplusplus # define HB_BEGIN_DECLS extern "C" { -- 2.7.4