From 9958ad72172923f948ae35c84260d6f79341b7cd Mon Sep 17 00:00:00 2001 From: Danny Smith Date: Thu, 14 Jun 2007 03:01:33 +0000 Subject: [PATCH] * include/string.h (strcasecmp): Add prototype. (strncasecmp): Add prototype. --- winsup/mingw/ChangeLog | 5 +++++ winsup/mingw/include/string.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog index 6e0887537..53729c94c 100644 --- a/winsup/mingw/ChangeLog +++ b/winsup/mingw/ChangeLog @@ -1,3 +1,8 @@ +2007-06-14 Danny Smith + + * include/string.h (strcasecmp): Add prototype. + (strncasecmp): Add prototype. + 2007-06-13 Danny Smith * Makefile.in (CRT0S): Revert last change. diff --git a/winsup/mingw/include/string.h b/winsup/mingw/include/string.h index 1047e5019..bc3d1753e 100644 --- a/winsup/mingw/include/string.h +++ b/winsup/mingw/include/string.h @@ -92,12 +92,14 @@ _CRTIMP int __cdecl memicmp (const void*, const void*, size_t); _CRTIMP char* __cdecl strdup (const char*) __MINGW_ATTRIB_MALLOC; _CRTIMP int __cdecl strcmpi (const char*, const char*); _CRTIMP int __cdecl stricmp (const char*, const char*); +__CRT_INLINE int __cdecl strcasecmp (const char*, const char *); __CRT_INLINE int __cdecl strcasecmp (const char * __sz1, const char * __sz2) {return _stricmp (__sz1, __sz2);} _CRTIMP int __cdecl stricoll (const char*, const char*); _CRTIMP char* __cdecl strlwr (char*); _CRTIMP int __cdecl strnicmp (const char*, const char*, size_t); +__CRT_INLINE int __cdecl strncasecmp (const char *. const char *, size_t); __CRT_INLINE int __cdecl strncasecmp (const char * __sz1, const char * __sz2, size_t __sizeMaxCompare) {return _strnicmp (__sz1, __sz2, __sizeMaxCompare);}