1
0
Fork 0
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:
Matthew R. Trower 2018-06-19 15:25:20 -05:00 committed by Jon Trulson
parent db6de6284f
commit 408f8256cd
2 changed files with 7 additions and 2 deletions

View file

@ -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.

View file

@ -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);