mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
Resolve inconsistent strcasestr availability on Sun
This commit is contained in:
parent
db6de6284f
commit
408f8256cd
2 changed files with 7 additions and 2 deletions
|
@ -729,13 +729,13 @@ FindDialog::compareMessage(DtMailMessageHandle handle)
|
|||
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'.
|
||||
// A case-insensitive version of strstr().
|
||||
//
|
||||
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.
|
||||
|
||||
|
|
|
@ -102,6 +102,11 @@ private:
|
|||
|
||||
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,
|
||||
DtMailValueSeq & seq,
|
||||
const char * cmpToString);
|
||||
|
|
Loading…
Reference in a new issue