diff options
Diffstat (limited to 'tools/gn/filesystem_utils.h')
-rw-r--r-- | tools/gn/filesystem_utils.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/gn/filesystem_utils.h b/tools/gn/filesystem_utils.h index 90e9d50..bf214dc 100644 --- a/tools/gn/filesystem_utils.h +++ b/tools/gn/filesystem_utils.h @@ -40,7 +40,10 @@ SourceFileType GetSourceFileType(const SourceFile& file, const char* GetExtensionForOutputType(Target::OutputType type, Settings::TargetOS os); -std::string FilePathToUTF8(const base::FilePath& path); +std::string FilePathToUTF8(const base::FilePath::StringType& str); +inline std::string FilePathToUTF8(const base::FilePath& path) { + return FilePathToUTF8(path.value()); +} base::FilePath UTF8ToFilePath(const base::StringPiece& sp); // Extensions ----------------------------------------------------------------- |