mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-29 21:08:24 +00:00
Use stdint.h on MSVC >= 2012
Closes cesanta/mongoose#659 PUBLISHED_FROM=8a2e029715e5e7f9a2c75eea9b55270c51b273ef
This commit is contained in:
1 parent
19a28b3c81
commit
c84af7d1e2
1 file changed
+4
@@ -187,6 +187,9 @@
|
|||||||
#endif
|
#endif
|
||||||
#define random() rand()
|
#define random() rand()
|
||||||
typedef int socklen_t;
|
typedef int socklen_t;
|
||||||
|
#if _MSC_VER >= 1700
|
||||||
|
#include <stdint.h>
|
||||||
|
#else
|
||||||
typedef signed char int8_t;
|
typedef signed char int8_t;
|
||||||
typedef unsigned char uint8_t;
|
typedef unsigned char uint8_t;
|
||||||
typedef int int32_t;
|
typedef int int32_t;
|
||||||
@@ -195,6 +198,7 @@ typedef short int16_t;
|
|||||||
typedef unsigned short uint16_t;
|
typedef unsigned short uint16_t;
|
||||||
typedef __int64 int64_t;
|
typedef __int64 int64_t;
|
||||||
typedef unsigned __int64 uint64_t;
|
typedef unsigned __int64 uint64_t;
|
||||||
|
#endif
|
||||||
typedef SOCKET sock_t;
|
typedef SOCKET sock_t;
|
||||||
typedef uint32_t in_addr_t;
|
typedef uint32_t in_addr_t;
|
||||||
#ifndef UINT16_MAX
|
#ifndef UINT16_MAX
|
||||||
|
|||||||
Reference in new issue
Block a user