- Timestamp:
- Jun 27, 2007, 3:03:31 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/src/cacaserver.c
r1462 r1770 31 31 # include <winsock2.h> 32 32 # include <ws2tcpip.h> 33 # define USE_WINSOCK 1 33 34 #endif 34 35 #if defined(HAVE_UNISTD_H) … … 42 43 #include <stdarg.h> 43 44 45 #ifndef USE_WINSOCK 46 # define USE_WINSOCK 0 47 #endif 48 44 49 #include "cucul.h" 45 50 … … 130 135 char *tmp; 131 136 132 #if def HAVE_WINDOWS_H133 134 135 136 137 137 #if USE_WINSOCK 138 WORD winsockVersion; 139 WSADATA wsaData; 140 winsockVersion = MAKEWORD(1, 1); 141 142 WSAStartup(winsockVersion, &wsaData); 138 143 #endif 139 144 server = malloc(sizeof(struct server)); … … 292 297 free(server); 293 298 294 #if def HAVE_WINDOWS_H299 #if USE_WINSOCK 295 300 WSACleanup(); 296 301 #endif
Note: See TracChangeset
for help on using the changeset viewer.