summaryrefslogtreecommitdiff
path: root/pjlib/include/pj/ctype.h
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-07-22 13:42:56 +0000
committerBenny Prijono <bennylp@teluu.com>2006-07-22 13:42:56 +0000
commitca0e9bd20df27bb62875130a0db513256c92e75a (patch)
tree76e9d620d2826839286c2b6216c9d2d5df3ad44d /pjlib/include/pj/ctype.h
parent26e9af9bcbc271bc373dd9f106fd7b143efe7474 (diff)
Changed all public header files to compile correctly when -ansi and -pedantic is used, also when g++ is used
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@622 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib/include/pj/ctype.h')
-rw-r--r--pjlib/include/pj/ctype.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pjlib/include/pj/ctype.h b/pjlib/include/pj/ctype.h
index 0319cfdb..6b8df9f5 100644
--- a/pjlib/include/pj/ctype.h
+++ b/pjlib/include/pj/ctype.h
@@ -62,7 +62,7 @@ PJ_INLINE(int) pj_isalpha(int c) { return isalpha(c); }
* @return Non-zero value if c is a particular representation of
* an ASCII character.
*/
-PJ_INLINE(int) pj_isascii(int c) { return isascii(c); }
+PJ_INLINE(int) pj_isascii(int c) { return c<128 && c>=0; }
/**
* Returns a non-zero value if c is a particular representation of