diff options
Diffstat (limited to 'base/string_util_posix.h')
-rw-r--r-- | base/string_util_posix.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/string_util_posix.h b/base/string_util_posix.h index 2660ba2..b503685a 100644 --- a/base/string_util_posix.h +++ b/base/string_util_posix.h @@ -14,6 +14,12 @@ namespace base { +// 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); } |