summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2017-01-01 08:51:09 (GMT)
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2017-09-16 07:54:11 (GMT)
commit9fa250d794cabc68fe53087de1b5b9797e515e18 (patch)
tree3b54971d1eaed05d484fc192ff68e514d2d1bc2b
parentf50a5250e49347df802d7844358f5ea567ddfac2 (diff)
downloadNinja-9fa250d794cabc68fe53087de1b5b9797e515e18.zip
Ninja-9fa250d794cabc68fe53087de1b5b9797e515e18.tar.gz
Ninja-9fa250d794cabc68fe53087de1b5b9797e515e18.tar.bz2
Move #include for type definition to correct place.
Not sure why the old way works in newer compilers; maybe they just pre-define these types by defaulting to a newer standard.
-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