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

@@ -21,24 +21,14 @@
#include "strophe.h"
#include "common.h"
#include "ostypes.h"
#include "sasl.h"
#include "md5.h"
#include "sha1.h"
#include "scram.h"
/* make sure the stdint.h types are available */
#if defined(_MSC_VER) /* Microsoft Visual C++ */
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;
/* no uint64_t */
#else
#include <stdint.h>
#ifdef _WIN32
#define strtok_r strtok_s
#endif