Navigation Menu

Skip to content

Commit

Permalink
Add missing types for MSVC 9.0 and less
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Dryabzhinsky committed Dec 31, 2018
1 parent 892c219 commit 7251a90
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions src/python-zstd.h
Expand Up @@ -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

Expand All @@ -127,12 +129,14 @@ typedef unsigned long long U64;
# if _MSC_VER >= 1600
# include <stdint.h>
# 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

Expand Down

0 comments on commit 7251a90

Please sign in to comment.