summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/timestamp.h6
-rw-r--r--src/util.h1
2 files changed, 6 insertions, 1 deletions
diff --git a/src/timestamp.h b/src/timestamp.h
index 58ae148..5565154 100644
--- a/src/timestamp.h
+++ b/src/timestamp.h
@@ -15,6 +15,12 @@
#ifndef NINJA_TIMESTAMP_H_
#define NINJA_TIMESTAMP_H_
+#ifdef _WIN32
+#include "win32port.h"
+#else
+#include <inttypes.h>
+#endif
+
// When considering file modification times we only care to compare
// them against one another -- we never convert them to an absolute
// real time. On POSIX we use timespec (seconds&nanoseconds since epoch)
diff --git a/src/util.h b/src/util.h
index a8493d6..4ee41a5 100644
--- a/src/util.h
+++ b/src/util.h
@@ -18,7 +18,6 @@
#ifdef _WIN32
#include "win32port.h"
#else
-#include <inttypes.h>
#include <stdint.h>
#endif