From d7dbe1ac84658bd2b1b1d5cf38823a22a317f18b Mon Sep 17 00:00:00 2001 From: Frances Buontempo Date: Tue, 3 Jan 2012 16:45:16 +0000 Subject: typedef long long for MSVC --- src/util.h | 4 ++++ src/win32port.h | 9 +++++++++ 2 files changed, 13 insertions(+) create mode 100644 src/win32port.h diff --git a/src/util.h b/src/util.h index f6601d3..58e0b85 100644 --- a/src/util.h +++ b/src/util.h @@ -16,7 +16,11 @@ #define NINJA_UTIL_H_ #pragma once +#ifdef WIN32 +#include "win32port.h" +#else #include +#endif #include using namespace std; diff --git a/src/win32port.h b/src/win32port.h new file mode 100644 index 0000000..a39590f --- /dev/null +++ b/src/win32port.h @@ -0,0 +1,9 @@ +#ifndef NINJA_WIN32PORT_H_ +#define NINJA_WIN32PORT_H_ +#pragma once + +/// A 64-bit integer type +typedef unsigned long long int64_t; +typedef unsigned long long uint64_t; + +#endif // NINJA_WIN32PORT_H_ \ No newline at end of file -- cgit v0.12 From 7e3f93541e937d886652a8c16873efd93d98230b Mon Sep 17 00:00:00 2001 From: Frances Buontempo Date: Tue, 3 Jan 2012 16:48:02 +0000 Subject: Add new line to new file --- src/win32port.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/win32port.h b/src/win32port.h index a39590f..4abdb14 100644 --- a/src/win32port.h +++ b/src/win32port.h @@ -3,7 +3,8 @@ #pragma once /// A 64-bit integer type -typedef unsigned long long int64_t; +typedef signed long long int64_t; typedef unsigned long long uint64_t; -#endif // NINJA_WIN32PORT_H_ \ No newline at end of file +#endif // NINJA_WIN32PORT_H_ + -- cgit v0.12