Ignore:
Timestamp:
Apr 1, 2006, 11:26:30 PM (15 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Added Winsock (c)(tm)(r) compatibility
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/cacaserver.c

    r707 r717  
    122122    char *tmp;
    123123
     124#ifdef HAVE_WINDOWS_H
     125        WORD winsockVersion;
     126        WSADATA wsaData;
     127        int nret;
     128        winsockVersion = MAKEWORD(1, 1);
     129
     130        WSAStartup(winsockVersion, &wsaData);
     131#endif
    124132    server = malloc(sizeof(struct server));
    125133
     
    263271    free(server);
    264272
     273#ifdef HAVE_WINDOWS_H
     274    WSACleanup();
     275#endif
    265276    return 0;
    266277}
Note: See TracChangeset for help on using the changeset viewer.