summaryrefslogtreecommitdiffstats
path: root/base/string_util_win.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/string_util_win.h')
-rw-r--r--base/string_util_win.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/string_util_win.h b/base/string_util_win.h
index f2adae6..0367ec4 100644
--- a/base/string_util_win.h
+++ b/base/string_util_win.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* s1, const char* s2) {
return _stricmp(s1, s2);
}