Initial copy from dali-adaptor repository
[platform/core/uifw/dali-adaptor-legacy.git] / third-party / windows-platform / sys / socket.h
1 #ifndef _SOCKET_INCLUDE_
2 #define _SOCKET_INCLUDE_
3
4 #include <winsock2.h>
5
6 #ifdef ERROR
7 #undef ERROR
8 #endif
9
10 #ifdef CopyMemory
11 #undef CopyMemory
12 #endif
13
14 #ifdef TRANSPARENT
15 #undef TRANSPARENT
16 #endif
17
18 typedef int socklen_t;
19 char DALI_SOCKET_ERROR[2] = "";
20
21 char* strerror_r(int, char *, int)
22 {
23   return DALI_SOCKET_ERROR;
24 }
25
26 int pipe( int* )
27 {
28   return 1;
29 }
30
31 #endif