2011-03-02 22:03:47 +00:00
|
|
|
#ifndef __WEB_SOCK_W32_H__
|
|
|
|
#define __WEB_SOCK_W32_H__
|
|
|
|
|
|
|
|
// Windows uses _DEBUG and NDEBUG
|
|
|
|
#ifdef _DEBUG
|
|
|
|
#undef DEBUG
|
|
|
|
#define DEBUG 1
|
|
|
|
#endif
|
|
|
|
|
2011-03-10 18:14:01 +00:00
|
|
|
#pragma warning(disable : 4996)
|
|
|
|
|
2011-03-02 22:03:47 +00:00
|
|
|
#define bzero(b,len) (memset((b), '\0', (len)), (void) 0)
|
|
|
|
|
|
|
|
#define MSG_NOSIGNAL 0
|
|
|
|
#define SHUT_RDWR SD_BOTH
|
|
|
|
|
2011-03-10 18:14:01 +00:00
|
|
|
#define SOL_TCP IPPROTO_TCP
|
|
|
|
|
2011-03-05 09:04:23 +00:00
|
|
|
#define random rand
|
|
|
|
#define usleep _sleep
|
2011-03-02 22:03:47 +00:00
|
|
|
#define poll WSAPoll
|
|
|
|
|
2011-03-05 09:04:23 +00:00
|
|
|
/* override configure because we are not using Makefiles */
|
2011-03-02 22:03:47 +00:00
|
|
|
|
2011-03-05 09:04:23 +00:00
|
|
|
#define LWS_NO_FORK
|
2011-03-02 22:03:47 +00:00
|
|
|
#define DATADIR "."
|
|
|
|
|
2011-03-05 09:04:23 +00:00
|
|
|
#endif
|