summaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 49a9aec..8d42ed4 100644
--- a/src/util.h
+++ b/src/util.h
@@ -35,4 +35,8 @@ bool CanonicalizePath(string* path, string* err);
/// Portability abstraction.
int MakeDir(const string& path);
+/// Read a file to a string.
+/// Returns -errno and fills in \a err on error.
+int ReadFile(const string& path, string* contents, string* err);
+
#endif // NINJA_UTIL_H_