diff options
author | Danny Smith <dannysmith@users.sourceforge.net> | 2002-10-11 01:41:31 +0000 |
---|---|---|
committer | Danny Smith <dannysmith@users.sourceforge.net> | 2002-10-11 01:41:31 +0000 |
commit | f98e630084bfb300d40c184c65c339261e95a68c (patch) | |
tree | a5f481285b36f6e850ee00536c59f5b35c8ee596 /winsup/mingw/include | |
parent | b01ff453d9a8e19b1eeb3874e327b18d54f2bf46 (diff) | |
download | newlib-f98e630084bfb300d40c184c65c339261e95a68c.zip newlib-f98e630084bfb300d40c184c65c339261e95a68c.tar.gz newlib-f98e630084bfb300d40c184c65c339261e95a68c.tar.bz2 |
* include/string.h (strcasecmp): Make extern __inline__.
(strncasecmp): Likewise.
(wcscmpi): Likewise.
Diffstat (limited to 'winsup/mingw/include')
-rw-r--r-- | winsup/mingw/include/string.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/winsup/mingw/include/string.h b/winsup/mingw/include/string.h index 3b299ae..7647c29 100644 --- a/winsup/mingw/include/string.h +++ b/winsup/mingw/include/string.h @@ -161,11 +161,15 @@ int memicmp (const void*, const void*, size_t); char* strdup (const char*); int strcmpi (const char*, const char*); int stricmp (const char*, const char*); -int strcasecmp (const char*, const char*); +extern __inline__ int +strcasecmp (const char * __sz1, const char * __sz2) + {return _stricmp (__sz1, __sz2);} int stricoll (const char*, const char*); char* strlwr (char*); int strnicmp (const char*, const char*, size_t); -int strncasecmp (const char*, const char*, size_t); +extern __inline__ int +strncasecmp (const char * __sz1, const char * __sz2, size_t __sizeMaxCompare) + {return _strnicmp (__sz1, __sz2, __sizeMaxCompare);} char* strnset (char*, int, size_t); char* strrev (char*); char* strset (char*, int); @@ -175,7 +179,9 @@ void swab (const char*, char*, size_t); #endif /* _UWIN */ /* NOTE: There is no _wcscmpi, but this is for compatibility. */ -int wcscmpi (const wchar_t*, const wchar_t*); +extern __inline__ int +wcscmpi (const wchar_t * __ws1, const wchar_t * __ws2) + {return _wcsicmp (__ws1, __ws2);} wchar_t* wcsdup (wchar_t*); int wcsicmp (const wchar_t*, const wchar_t*); int wcsicoll (const wchar_t*, const wchar_t*); |