зеркало из https://github.com/mozilla/pjs.git
Fix UNIX build bustage
This commit is contained in:
Родитель
a4129d5f23
Коммит
31634b6c93
|
@ -66,6 +66,11 @@ public:
|
|||
return PRInt32(PL_strcasecmp(s1, s2));
|
||||
}
|
||||
|
||||
/// Case-insensitive string comparison with length
|
||||
static PRInt32 strncasecmp(const char* s1, const char* s2, PRInt32 aMaxLen) {
|
||||
return PRInt32(PL_strncasecmp(s1, s2, aMaxLen));
|
||||
}
|
||||
|
||||
/// Like strlen except for ucs2 strings
|
||||
static PRInt32 strlen(const PRUnichar* s);
|
||||
|
||||
|
|
|
@ -462,7 +462,7 @@ PRBool nsHTMLParser::Parse(nsIURL* aURL){
|
|||
char* theModeStr= PR_GetEnv("PARSE_MODE");
|
||||
|
||||
if(theModeStr)
|
||||
if(0==strnicmp("other",theModeStr,5))
|
||||
if(0==nsCRT::strncasecmp("other",theModeStr,5))
|
||||
theMode=eParseMode_other;
|
||||
|
||||
return Parse(aURL,theMode);
|
||||
|
|
|
@ -462,7 +462,7 @@ PRBool nsHTMLParser::Parse(nsIURL* aURL){
|
|||
char* theModeStr= PR_GetEnv("PARSE_MODE");
|
||||
|
||||
if(theModeStr)
|
||||
if(0==strnicmp("other",theModeStr,5))
|
||||
if(0==nsCRT::strncasecmp("other",theModeStr,5))
|
||||
theMode=eParseMode_other;
|
||||
|
||||
return Parse(aURL,theMode);
|
||||
|
|
|
@ -66,6 +66,11 @@ public:
|
|||
return PRInt32(PL_strcasecmp(s1, s2));
|
||||
}
|
||||
|
||||
/// Case-insensitive string comparison with length
|
||||
static PRInt32 strncasecmp(const char* s1, const char* s2, PRInt32 aMaxLen) {
|
||||
return PRInt32(PL_strncasecmp(s1, s2, aMaxLen));
|
||||
}
|
||||
|
||||
/// Like strlen except for ucs2 strings
|
||||
static PRInt32 strlen(const PRUnichar* s);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче