Changeset 2c1edcf1f486e4f968e8fa499508c4b7b620e12e

Show
Ignore:
Timestamp:
17/07/05 23:21:04 (3 years ago)
Author:
Cyril Deguet <asmax@videolan.org>
git-committer:
Cyril Deguet <asmax@videolan.org> 1121635264 +0000
git-parent:

[80ee9c71d258094b2b7a83ddeb58c2d13216b64c]

git-author:
Cyril Deguet <asmax@videolan.org> 1121635264 +0000
Message:

* all: compilation fix with vc7.1 compiler, and removed a bunch of warnings (there are still many warnings about size_t/int mismatch though...)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • include/network.h

    ra2aa6d7 r2c1edcf  
    3131#elif defined( WIN32 ) 
    3232#   include <winsock2.h> 
     33#   include <ws2tcpip.h> 
    3334#elif HAVE_SYS_SOCKET_H 
    3435#   include <sys/socket.h> 
  • include/vlc_common.h

    r4ee9175 r2c1edcf  
    537537 
    538538/* Dynamic array handling: realloc array, move data, increment position */ 
    539 #if defined( _MSC_VER ) 
     539#if defined( _MSC_VER ) && _MSC_VER < 1300 
    540540#   define VLCCVP (void**) /* Work-around for broken compiler */ 
    541541#else 
  • src/input/var.c

    rfe087a3 r2c1edcf  
    476476{ 
    477477    input_thread_t *p_input = (input_thread_t*)p_this; 
    478     vlc_value_t val; 
    479     int i_rate; 
    480478 
    481479    /* Problem with this way: the "rate" variable is update after the input thread do the change */ 
  • src/libvlc.c

    rfe087a3 r2c1edcf  
    248248    char *       psz_parser; 
    249249    char *       psz_control; 
    250     char *       psz_language; 
    251250    vlc_bool_t   b_exit = VLC_FALSE; 
    252251    vlc_t *      p_vlc = vlc_current_object( i_object ); 
     
    254253    playlist_t  *p_playlist; 
    255254    vlc_value_t  val; 
     255#ifndef WIN32 
     256    char *       psz_language; 
     257#endif 
    256258 
    257259    if( !p_vlc ) 
     
    20352037            char *psz_bra = NULL, *psz_type = NULL, *psz_ket = NULL; 
    20362038            char *psz_suf = "", *psz_prefix = NULL; 
    2037             int i; 
     2039            size_t i; 
    20382040 
    20392041            /* Skip deprecated options */ 
     
    21682170            { 
    21692171                char *psz_parser, *psz_word; 
    2170                 int i_end = strlen( psz_text ); 
     2172                size_t i_end = strlen( psz_text ); 
    21712173 
    21722174                /* If the remaining text fits in a line, print it. */ 
    2173                 if( i_end <= i_width ) 
     2175                if( i_end <= (size_t)i_width ) 
    21742176                { 
    21752177                    fprintf( stdout, "%s\n", psz_text ); 
  • src/misc/getaddrinfo.c

    rfd8f4e2 r2c1edcf  
    501501    char psz_servbuf[6], *psz_serv; 
    502502    int i_servlen, i_val; 
    503  
    504     flags |= NI_NUMERICSERV; 
    505     if( portnum != NULL ) 
    506     { 
    507         psz_serv = psz_servbuf; 
    508         i_servlen = sizeof( psz_servbuf ); 
    509     } 
    510     else 
    511     { 
    512         psz_serv = NULL; 
    513         i_servlen = 0; 
    514     } 
    515503#ifdef WIN32 
    516504    /* 
     
    522510    HINSTANCE wship6_module; 
    523511    GETNAMEINFO ws2_getnameinfo; 
    524       
     512#endif 
     513 
     514    flags |= NI_NUMERICSERV; 
     515    if( portnum != NULL ) 
     516    { 
     517        psz_serv = psz_servbuf; 
     518        i_servlen = sizeof( psz_servbuf ); 
     519    } 
     520    else 
     521    { 
     522        psz_serv = NULL; 
     523        i_servlen = 0; 
     524    } 
     525#ifdef WIN32     
    525526    wship6_module = LoadLibrary( "wship6.dll" ); 
    526527    if( wship6_module != NULL ) 
     
    555556        vlc_mutex_lock( lock.p_address ); 
    556557#else 
    557 # warning FIXME : This is not thread-safe! 
     558//# warning FIXME : This is not thread-safe! 
    558559#endif 
    559560        i_val = __getnameinfo( sa, salen, host, hostlen, psz_serv, i_servlen, 
  • src/misc/net.c

    r9d31c40 r2c1edcf  
    4343#       undef sockaddr_storage 
    4444#   endif 
     45#   include <io.h> 
    4546#   include <winsock2.h> 
    4647#   include <ws2tcpip.h> 
     
    129130    { 
    130131        i_val = PROTECTION_LEVEL_UNRESTRICTED; 
    131         setsockopt( fd, IPPROTO_IPV6, IPV6_PROTECTION_LEVEL, &i_val, 
    132                     sizeof( i_val ) ); 
     132        setsockopt( fd, IPPROTO_IPV6, IPV6_PROTECTION_LEVEL, 
     133                   (const char*)&i_val, sizeof( i_val ) ); 
    133134    } 
    134135# else 
  • src/stream_output/acl.c

    r90d3d34 r2c1edcf  
    6767                        const char *psz_ip ) 
    6868{ 
    69     struct addrinfo hints = { }, *res; 
     69    struct addrinfo hints, *res; 
    7070    int i_family; 
    7171 
  • src/stream_output/sap.c

    r3de41d4 r2c1edcf  
    353353    } 
    354354    else 
    355         b_ipv6 == (strchr( p_method->psz_address, ':' ) != NULL); 
     355        b_ipv6 = (strchr( p_method->psz_address, ':' ) != NULL); 
    356356 
    357357    msg_Dbg( p_sap, "using SAP address: %s", p_method->psz_address);