From 7251a90d3d744a9678a3d75f17be03de9d794dcc Mon Sep 17 00:00:00 2001 From: Sergey Dryabzhinsky Date: Mon, 31 Dec 2018 05:49:29 +0300 Subject: [PATCH] Add missing types for MSVC 9.0 and less --- src/python-zstd.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/python-zstd.h b/src/python-zstd.h index 1e76eb8..6a5bd0c 100644 --- a/src/python-zstd.h +++ b/src/python-zstd.h @@ -113,12 +113,14 @@ typedef uint8_t BYTE; typedef uint16_t U16; typedef uint32_t U32; typedef int32_t S32; +typedef int64_t S64; typedef uint64_t U64; #else typedef unsigned char BYTE; typedef unsigned short U16; typedef unsigned int U32; typedef signed int S32; +typedef signed long long S64; typedef unsigned long long U64; #endif @@ -127,12 +129,14 @@ typedef unsigned long long U64; # if _MSC_VER >= 1600 # include # else /* _MSC_VER >= 1600 */ - typedef signed char int8_t; - typedef signed short int16_t; - typedef signed int int32_t; - typedef unsigned char uint8_t; - typedef unsigned short uint16_t; - typedef unsigned int uint32_t; + typedef signed char int8_t; + typedef signed short int16_t; + typedef signed int int32_t; + typedef signed long long int64_t; + typedef unsigned char uint8_t; + typedef unsigned short uint16_t; + typedef unsigned int uint32_t; + typedef unsigned long long uint64_t; # endif /* _MSC_VER >= 1600 */ #endif