X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Ftimestamp.h;h=6a7ccd0b06851578eb3b57c0b8b270b581298518;hb=3536e737a851a0c926413b59208769d776b11153;hp=cee7ba8f21bda0ae1206376f9f0e976043f6921b;hpb=bc6ca5ee6d92a40fab624c985726e19e503d530a;p=platform%2Fupstream%2Fninja.git diff --git a/src/timestamp.h b/src/timestamp.h index cee7ba8..6a7ccd0 100644 --- a/src/timestamp.h +++ b/src/timestamp.h @@ -15,10 +15,19 @@ #ifndef NINJA_TIMESTAMP_H_ #define NINJA_TIMESTAMP_H_ +#ifdef _WIN32 +#include "win32port.h" +#else +#ifndef __STDC_FORMAT_MACROS +#define __STDC_FORMAT_MACROS +#endif +#include +#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 time_t (seconds since epoch) and on -// Windows we use a different value. Both fit in an int. -typedef int TimeStamp; +// real time. On POSIX we use timespec (seconds&nanoseconds since epoch) +// and on Windows we use a different value. Both fit in an int64. +typedef int64_t TimeStamp; #endif // NINJA_TIMESTAMP_H_