Resolve inconsistent strcasestr availability on Sun
This commit is contained in:
committed by
Jon Trulson
parent
db6de6284f
commit
408f8256cd
@@ -729,13 +729,13 @@ FindDialog::compareMessage(DtMailMessageHandle handle)
|
|||||||
return(found);
|
return(found);
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(CSRG_BASED) && !defined(__linux__) && !defined(sun)
|
#if !defined(CSRG_BASED) && !defined(__linux__)
|
||||||
//
|
//
|
||||||
// See if string 'toFind' is anyware in string 'str'.
|
// See if string 'toFind' is anyware in string 'str'.
|
||||||
// A case-insensitive version of strstr().
|
// A case-insensitive version of strstr().
|
||||||
//
|
//
|
||||||
static const char *
|
static const char *
|
||||||
strcasestr(const char *str, const char *toFind)
|
FindDialog::strcasestr(const char *str, const char *toFind)
|
||||||
{
|
{
|
||||||
const char *result = NULL; // Default to not found.
|
const char *result = NULL; // Default to not found.
|
||||||
|
|
||||||
|
|||||||
@@ -102,6 +102,11 @@ private:
|
|||||||
|
|
||||||
Boolean compareMessage(DtMailMessageHandle handle);
|
Boolean compareMessage(DtMailMessageHandle handle);
|
||||||
|
|
||||||
|
#if !defined(CSRG_BASED) && !defined(__linux__)
|
||||||
|
static const char * strcasestr(const char *str,
|
||||||
|
const char *toFind);
|
||||||
|
#endif
|
||||||
|
|
||||||
Boolean compareHeader(DtMailEnv & error,
|
Boolean compareHeader(DtMailEnv & error,
|
||||||
DtMailValueSeq & seq,
|
DtMailValueSeq & seq,
|
||||||
const char * cmpToString);
|
const char * cmpToString);
|
||||||
|
|||||||
Reference in New Issue
Block a user