summaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-12-20 19:43:57 (GMT)
committerEvan Martin <martine@danga.com>2011-12-20 19:43:57 (GMT)
commit0cd066933511edb7869c5f6ce462b019a140ce3c (patch)
tree1fe70692438cf4c091a5fbfdcf0a9e832fba5f56 /src/util.h
parent9bf145d98746d60d7d757ab6a8bc0c016d9c4360 (diff)
downloadNinja-0cd066933511edb7869c5f6ce462b019a140ce3c.zip
Ninja-0cd066933511edb7869c5f6ce462b019a140ce3c.tar.gz
Ninja-0cd066933511edb7869c5f6ce462b019a140ce3c.tar.bz2
factor out windows perror equivalent
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index d36e2e1..f6601d3 100644
--- a/src/util.h
+++ b/src/util.h
@@ -57,6 +57,9 @@ const char* SpellcheckString(const string& text, ...);
#ifdef _WIN32
#define snprintf _snprintf
+
+/// Convert the value returned by GetLastError() into a string.
+string GetLastErrorString();
#endif
#endif // NINJA_UTIL_H_