mirror of
https://github.com/google/brotli.git
synced 2024-11-29 14:41:05 +00:00
[types.h] make std ints types for _MSC_VER compatible with CFFI
As defined in _cffi_include.h: 21fef94ca0/cffi/_cffi_include.h (_cffi_include.h-15)
This commit is contained in:
parent
8e90bf4c5f
commit
66fa4ff403
16
dec/types.h
16
dec/types.h
@ -21,14 +21,14 @@
|
|||||||
#include <stddef.h> /* for size_t */
|
#include <stddef.h> /* for size_t */
|
||||||
|
|
||||||
#if defined(_MSC_VER) && (_MSC_VER < 1600)
|
#if defined(_MSC_VER) && (_MSC_VER < 1600)
|
||||||
typedef signed char int8_t;
|
typedef __int8 int8_t;
|
||||||
typedef unsigned char uint8_t;
|
typedef unsigned __int8 uint8_t;
|
||||||
typedef signed short int16_t;
|
typedef __int16 int16_t;
|
||||||
typedef unsigned short uint16_t;
|
typedef unsigned __int16 uint16_t;
|
||||||
typedef signed int int32_t;
|
typedef __int32 int32_t;
|
||||||
typedef unsigned int uint32_t;
|
typedef unsigned __int32 uint32_t;
|
||||||
typedef unsigned long long int uint64_t;
|
typedef unsigned __int64 uint64_t;
|
||||||
typedef long long int int64_t;
|
typedef __int64 int64_t;
|
||||||
#else
|
#else
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif /* defined(_MSC_VER) && (_MSC_VER < 1600) */
|
#endif /* defined(_MSC_VER) && (_MSC_VER < 1600) */
|
||||||
|
16
enc/types.h
16
enc/types.h
@ -21,14 +21,14 @@
|
|||||||
#include <stddef.h> /* for size_t */
|
#include <stddef.h> /* for size_t */
|
||||||
|
|
||||||
#if defined(_MSC_VER) && (_MSC_VER < 1600)
|
#if defined(_MSC_VER) && (_MSC_VER < 1600)
|
||||||
typedef signed char int8_t;
|
typedef __int8 int8_t;
|
||||||
typedef unsigned char uint8_t;
|
typedef unsigned __int8 uint8_t;
|
||||||
typedef signed short int16_t;
|
typedef __int16 int16_t;
|
||||||
typedef unsigned short uint16_t;
|
typedef unsigned __int16 uint16_t;
|
||||||
typedef signed int int32_t;
|
typedef __int32 int32_t;
|
||||||
typedef unsigned int uint32_t;
|
typedef unsigned __int32 uint32_t;
|
||||||
typedef unsigned long long int uint64_t;
|
typedef unsigned __int64 uint64_t;
|
||||||
typedef long long int int64_t;
|
typedef __int64 int64_t;
|
||||||
#else
|
#else
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif /* defined(_MSC_VER) && (_MSC_VER < 1600) */
|
#endif /* defined(_MSC_VER) && (_MSC_VER < 1600) */
|
||||||
|
Loading…
Reference in New Issue
Block a user