diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-01-01 09:06:56 (GMT) |
---|---|---|
committer | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-09-16 07:54:11 (GMT) |
commit | eb6cea27f23c0674cea47871f281aaffb8a8efc3 (patch) | |
tree | 0bd55508257b469ea07c4050e73993124de15929 /src/timestamp.h | |
parent | 9fa250d794cabc68fe53087de1b5b9797e515e18 (diff) | |
download | Ninja-eb6cea27f23c0674cea47871f281aaffb8a8efc3.zip Ninja-eb6cea27f23c0674cea47871f281aaffb8a8efc3.tar.gz Ninja-eb6cea27f23c0674cea47871f281aaffb8a8efc3.tar.bz2 |
Add #define to get printf-format specifiers.
This is needed on older compilers/stdlibs such as on Ubuntu Precise
which is used on Travis.
Diffstat (limited to 'src/timestamp.h')
-rw-r--r-- | src/timestamp.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/timestamp.h b/src/timestamp.h index 5565154..6a7ccd0 100644 --- a/src/timestamp.h +++ b/src/timestamp.h @@ -18,6 +18,9 @@ #ifdef _WIN32 #include "win32port.h" #else +#ifndef __STDC_FORMAT_MACROS +#define __STDC_FORMAT_MACROS +#endif #include <inttypes.h> #endif |