summaryrefslogtreecommitdiffstats
path: root/src/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.h')
-rwxr-xr-x[-rw-r--r--]src/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 794177d..c9e06f4 100644..100755
--- a/src/util.h
+++ b/src/util.h
@@ -46,4 +46,8 @@ int ReadFile(const string& path, string* contents, string* err);
/// time.
int64_t GetTimeMillis();
+#ifdef _WIN32
+#define snprintf _snprintf
+#endif
+
#endif // NINJA_UTIL_H_