Changeset 790 for pjproject


Ignore:
Timestamp:
Nov 1, 2006 7:13:45 AM (18 years ago)
Author:
bennylp
Message:

Fix compilation error with memchr() on VS2005

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/string.h

    r640 r790  
    469469PJ_INLINE(char*) pj_strchr( const pj_str_t *str, int chr) 
    470470{ 
    471     return (char*) memchr(str->ptr, chr, str->slen); 
     471    return (char*) memchr((char*)str->ptr, chr, str->slen); 
    472472} 
    473473 
     
    629629PJ_INLINE(void*) pj_memchr(const void *buf, int c, pj_size_t size) 
    630630{ 
    631     return memchr(buf, c, size); 
     631    return (void*)memchr((void*)buf, c, size); 
    632632} 
    633633 
Note: See TracChangeset for help on using the changeset viewer.