IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10949


Ignore:
Timestamp:
Jan 5, 2007, 6:13:51 PM (19 years ago)
Author:
jhoblitt
Message:

add our own implementation of strcasestr() that's only used when it doesn't exist in libc.

Location:
trunk/psLib
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/configure.ac

    r10487 r10949  
    458458LDFLAGS=${TMP_LDFLAGS}
    459459CPPFLAGS=${TMP_CPPFLAGS}
     460
     461dnl set NO_STRCASESTR if we can't find strcasestr
     462AC_CHECK_FUNC([strcasestr], [], [AC_SUBST(NO_STRCASESTR, [1])])
    460463
    461464dnl ------- enable -Werror after all of the probes have run ---------
  • trunk/psLib/src/sys/Makefile.am

    r8994 r10949  
    1414        psSlurp.c      \
    1515        psString.c     \
    16         psTrace.c
     16        psTrace.c      \
     17    strcasestr.c
    1718
    1819EXTRA_DIST = sys.i psErrorCodes.c.in psErrorCodes.h.in
  • trunk/psLib/src/sys/psString.h

    r10446 r10949  
    1414 *  @author David Robbins, MHPCC
    1515 *
    16  *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
    17  *  @date $Date: 2006-12-04 22:15:04 $
     16 *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
     17 *  @date $Date: 2007-01-06 04:13:51 $
    1818 *
    1919 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    221221}
    222222
     223#ifndef DOXYGEN
     224#if NO_STRCASESTR
     225// this means that the system's libc does not provide strcasestr()
     226#define strcasestr(...) p_psstrcasestr(__VA_ARGS__)
     227extern char *p_psstrcasestr (const char *haystack, const char *needle)
     228    __THROW __attribute_pure__ __nonnull ((1, 2));
     229#endif // if NO_STRCASESTR
     230#endif // ifndef DOXYGEN
    223231
    224232/** @} */// Doxygen - End of SystemGroup Functions
Note: See TracChangeset for help on using the changeset viewer.