diff options
Diffstat (limited to 'base/file.cpp')
-rw-r--r-- | base/file.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/file.cpp b/base/file.cpp index 3468dcfbf..7b5e7b13d 100644 --- a/base/file.cpp +++ b/base/file.cpp @@ -24,6 +24,7 @@ #include <string> #include "base/macros.h" // For TEMP_FAILURE_RETRY on Darwin. +#include "base/utf8.h" #define LOG_TAG "base.file" #include "cutils/log.h" #include "utils/Compat.h" @@ -35,6 +36,9 @@ namespace android { namespace base { +// Versions of standard library APIs that support UTF-8 strings. +using namespace android::base::utf8; + bool ReadFdToString(int fd, std::string* content) { content->clear(); |