fix MSVC build

This commit is contained in:
Vitaly Takmazov
2014-09-08 11:12:50 +04:00
committed by Dmitry Podgorny
parent bf5bf96e95
commit 58613ea7f3
12 changed files with 28 additions and 54 deletions

View File

@@ -20,8 +20,18 @@
#ifndef __LIBSTROPHE_OSTYPES_H__
#define __LIBSTROPHE_OSTYPES_H__
#ifdef _WIN32
#if defined (_MSC_VER) && _MSC_VER < 1600
typedef signed char int8_t;
typedef short int int16_t;
typedef int int32_t;
typedef __int64 int64_t;
typedef unsigned char uint8_t;
typedef unsigned short int uint16_t;
typedef unsigned int uint32_t;
typedef unsigned __int64 uint64_t;
#else
#include <stdint.h>
#endif
#endif /* __LIBSTROPHE_OSTYPES_H__ */