diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/file_path.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/base/file_path.h b/base/file_path.h index 0efe1a1..46a3060 100644 --- a/base/file_path.h +++ b/base/file_path.h @@ -355,11 +355,14 @@ class FilePath { StringType path_; }; -// Macros for string literal initialization of FilePath::CharType[]. +// Macros for string literal initialization of FilePath::CharType[], and for +// using a FilePath::CharType[] in a printf-style format string. #if defined(OS_POSIX) #define FILE_PATH_LITERAL(x) x +#define PRFilePath "s" #elif defined(OS_WIN) #define FILE_PATH_LITERAL(x) L ## x +#define PRFilePath "ls" #endif // OS_WIN // Provide a hash function so that hash_sets and maps can contain FilePath |