| Index: base/strings/string_util_posix.h
|
| diff --git a/base/strings/string_util_posix.h b/base/strings/string_util_posix.h
|
| index 3ca72dd74fd8801fc4f6bd1d5a6a69febefd894b..2a922ecb16dbe0d48ad0d0d074f5c88bf855a673 100644
|
| --- a/base/strings/string_util_posix.h
|
| +++ b/base/strings/string_util_posix.h
|
| @@ -17,6 +17,20 @@ inline int vsnprintf(char* buffer,
|
| return ::vsnprintf(buffer, size, format, arguments);
|
| }
|
|
|
| +// Chromium code style is to not use malloc'd strings; this is only for use
|
| +// for interaction with APIs that require it.
|
| +inline char* strdup(const char* str) {
|
| + return ::strdup(str);
|
| +}
|
| +
|
| +inline int strcasecmp(const char* string1, const char* string2) {
|
| + return ::strcasecmp(string1, string2);
|
| +}
|
| +
|
| +inline int strncasecmp(const char* string1, const char* string2, size_t count) {
|
| + return ::strncasecmp(string1, string2, count);
|
| +}
|
| +
|
| } // namespace base
|
|
|
| #endif // MINI_CHROMIUM_BASE_STRINGS_STRING_UTIL_POSIX_H_
|
|
|