Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: base/string_util_win.h

Issue 79020: linux (and some posix): multiprocess plugins compiling. (Closed)
Patch Set: rebased Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/string_util_posix.h ('k') | chrome/app/chrome_dll_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/string_util_win.h
diff --git a/base/string_util_win.h b/base/string_util_win.h
index f2adae69ba9ffe87a644bf905c12b669e10f224e..0367ec4adf02a9b2e851f6f5d78eb2b6e0425ca6 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);
}
« no previous file with comments | « base/string_util_posix.h ('k') | chrome/app/chrome_dll_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698