mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-30 00:00:16 +01:00
windows use msvc baestd and ssize_t from there
Signed-off-by: James Chen <jianhua.chen@cocos2d-x.org>
This commit is contained in:
parent
8ff88e9df0
commit
4ebedc2c30
1 changed files with 7 additions and 1 deletions
|
@ -35,6 +35,7 @@ extern "C" {
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <ws2tcpip.h>
|
#include <ws2tcpip.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
#include <BaseTsd.h>
|
||||||
#include "websock-w32.h"
|
#include "websock-w32.h"
|
||||||
|
|
||||||
#include "gettimeofday.h"
|
#include "gettimeofday.h"
|
||||||
|
@ -42,7 +43,12 @@ extern "C" {
|
||||||
#define strcasecmp stricmp
|
#define strcasecmp stricmp
|
||||||
#define getdtablesize() 30000
|
#define getdtablesize() 30000
|
||||||
|
|
||||||
typedef int ssize_t;
|
#ifndef __SSIZE_T
|
||||||
|
#define __SSIZE_T
|
||||||
|
|
||||||
|
typedef SSIZE_T ssize_t;
|
||||||
|
|
||||||
|
#endif // __SSIZE_T
|
||||||
|
|
||||||
#define LWS_VISIBLE
|
#define LWS_VISIBLE
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue