diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-01-01 08:51:09 (GMT) |
---|---|---|
committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-09-16 07:54:11 (GMT) |
commit | 9fa250d794cabc68fe53087de1b5b9797e515e18 (patch) | |
tree | 3b54971d1eaed05d484fc192ff68e514d2d1bc2b | |
parent | f50a5250e49347df802d7844358f5ea567ddfac2 (diff) | |
download | Ninja-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.h | 6 | ||||
-rw-r--r-- | src/util.h | 1 |
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) @@ -18,7 +18,6 @@ #ifdef _WIN32 #include "win32port.h" #else -#include <inttypes.h> #include <stdint.h> #endif |