Chromium Code Reviews| Index: runtime/bin/utils.h |
| diff --git a/runtime/bin/utils.h b/runtime/bin/utils.h |
| index ab02ebe647d02adada402037b78ab615b43b5fd4..5311d361e6523fb7027252a51450049665671600 100644 |
| --- a/runtime/bin/utils.h |
| +++ b/runtime/bin/utils.h |
| @@ -84,6 +84,9 @@ class StringUtils { |
| intptr_t len = -1, |
| intptr_t* result_len = NULL); |
| + // Not all platforms support strndup. |
| + static char* StrNDup(const char* s, intptr_t n); |
| + |
| private: |
| DISALLOW_ALLOCATION(); |
| DISALLOW_IMPLICIT_CONSTRUCTORS(StringUtils); |