Changeset 142


Ignore:
Timestamp:
Feb 7, 2006 7:01:58 PM (18 years ago)
Author:
bennylp
Message:

Fixed Makefile and warnings in cygwin/mingw

Location:
pjproject/trunk/pjlib-util
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib-util/build/Makefile

    r65 r142  
    2323export PJLIB_UTIL_SRCDIR = ../src/pjlib-util 
    2424export PJLIB_UTIL_OBJS += $(OS_OBJS) $(M_OBJS) $(CC_OBJS) $(HOST_OBJS) \ 
    25                 md5.o scanner.o stun.o stun_client.o xml.o 
     25                md5.o scanner.o stun.o string.o stun.o stun_client.o xml.o 
    2626export PJLIB_UTIL_CFLAGS += $(_CFLAGS) 
    2727 
  • pjproject/trunk/pjlib-util/include/pjlib-util/scanner_cis_bitwise.h

    r73 r142  
    7070 * @param c         The character. 
    7171 */ 
    72 #define PJ_CIS_SET(cis,c)   ((cis)->cis_buf[(c)] |= (1 << (cis)->cis_id)) 
     72#define PJ_CIS_SET(cis,c)   ((cis)->cis_buf[(int)(c)] |= (1 << (cis)->cis_id)) 
    7373 
    7474/** 
     
    7979 * @param c         The character to be removed from the membership. 
    8080 */ 
    81 #define PJ_CIS_CLR(cis,c)   ((cis)->cis_buf[c] &= ~(1 << (cis)->cis_id)) 
     81#define PJ_CIS_CLR(cis,c)   ((cis)->cis_buf[(int)c] &= ~(1 << (cis)->cis_id)) 
    8282 
    8383/** 
     
    8888 * @param c         The character. 
    8989 */ 
    90 #define PJ_CIS_ISSET(cis,c) ((cis)->cis_buf[c] & (1 << (cis)->cis_id)) 
     90#define PJ_CIS_ISSET(cis,c) ((cis)->cis_buf[(int)c] & (1 << (cis)->cis_id)) 
    9191 
    9292 
  • pjproject/trunk/pjlib-util/include/pjlib-util/scanner_cis_uint.h

    r73 r142  
    5757 * @param c         The character. 
    5858 */ 
    59 #define PJ_CIS_SET(cis,c)   ((cis)->cis_buf[(c)] = 1) 
     59#define PJ_CIS_SET(cis,c)   ((cis)->cis_buf[(int)(c)] = 1) 
    6060 
    6161/** 
     
    6666 * @param c         The character to be removed from the membership. 
    6767 */ 
    68 #define PJ_CIS_CLR(cis,c)   ((cis)->cis_buf[c] = 0) 
     68#define PJ_CIS_CLR(cis,c)   ((cis)->cis_buf[(int)c] = 0) 
    6969 
    7070/** 
     
    7575 * @param c         The character. 
    7676 */ 
    77 #define PJ_CIS_ISSET(cis,c) ((cis)->cis_buf[c]) 
     77#define PJ_CIS_ISSET(cis,c) ((cis)->cis_buf[(int)c]) 
    7878 
    7979 
  • pjproject/trunk/pjlib-util/src/pjlib-util/scanner.c

    r123 r142  
    484484                                 unsigned N, pj_bool_t skip_ws) 
    485485{ 
    486     char *start = scanner->curptr; 
    487  
    488486    if (scanner->curptr + N > scanner->end) { 
    489487        pj_scan_syntax_err(scanner); 
Note: See TracChangeset for help on using the changeset viewer.