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

Unified Diff: src/platform-linux.cc

Issue 13093: Fixed d8 on leopard. (Closed)
Patch Set: Created 12 years 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
Index: src/platform-linux.cc
diff --git a/src/platform-linux.cc b/src/platform-linux.cc
index 2bb9665374a0401ebce69ae473d2e0c650aa98f9..96ef899bc429f84fd5956de92b23aaa13c2e951b 100644
--- a/src/platform-linux.cc
+++ b/src/platform-linux.cc
@@ -185,11 +185,16 @@ void OS::StrNCpy(Vector<char> dest, const char* src, size_t n) {
}
-char *OS::StrDup(const char* str) {
+char* OS::StrDup(const char* str) {
return strdup(str);
}
+char* OS::StrNDup(const char* str, size_t n) {
+ return strndup(str, n);
+}
+
+
double OS::nan_value() {
return NAN;
}

Powered by Google App Engine
This is Rietveld 408576698