提交 cc4c096a 编写于 作者: B Behdad Esfahbod

MSVC has no stdint.h

上级 9a204c7a
...@@ -27,7 +27,20 @@ ...@@ -27,7 +27,20 @@
#ifndef HB_COMMON_H #ifndef HB_COMMON_H
#define 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 <stdint.h> #include <stdint.h>
#endif
# ifdef __cplusplus # ifdef __cplusplus
# define HB_BEGIN_DECLS extern "C" { # define HB_BEGIN_DECLS extern "C" {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册