8b2ebe58791a8f92ea4aac77283f5b2af6e44c21
[platform/upstream/libwebsockets.git] / win32port / win32helpers / websock-w32.h
1 #ifndef __WEB_SOCK_W32_H__
2 #define __WEB_SOCK_W32_H__
3
4 // Windows uses _DEBUG and NDEBUG
5 #ifdef _DEBUG
6 #undef DEBUG
7 #define DEBUG 1
8 #endif
9
10 #define bzero(b,len) (memset((b), '\0', (len)), (void) 0)
11
12 #define MSG_NOSIGNAL 0
13 #define SHUT_RDWR SD_BOTH
14
15 #define random rand
16 #define usleep _sleep
17 #define poll WSAPoll
18
19 /* override configure because we are not using Makefiles */
20
21 #define LWS_NO_FORK
22 #define DATADIR "."
23
24 #endif