Fix compilation error with memchr() on VS2005
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@790 74dad513-b988-da41-8d7b-12977e46ad98
This commit is contained in:
parent
646b7b7456
commit
33cb24a868
|
@ -468,7 +468,7 @@ PJ_IDECL(void) pj_strcat2(pj_str_t *dst, const char *src);
|
|||
*/
|
||||
PJ_INLINE(char*) pj_strchr( const pj_str_t *str, int chr)
|
||||
{
|
||||
return (char*) memchr(str->ptr, chr, str->slen);
|
||||
return (char*) memchr((char*)str->ptr, chr, str->slen);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -628,7 +628,7 @@ PJ_INLINE(int) pj_memcmp(const void *buf1, const void *buf2, pj_size_t size)
|
|||
*/
|
||||
PJ_INLINE(void*) pj_memchr(const void *buf, int c, pj_size_t size)
|
||||
{
|
||||
return memchr(buf, c, size);
|
||||
return (void*)memchr((void*)buf, c, size);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue