typedef long long for MSVC
authorFrances Buontempo <frances.buontempo@gmail.com>
Tue, 3 Jan 2012 16:45:16 +0000 (16:45 +0000)
committerFrances Buontempo <frances.buontempo@gmail.com>
Tue, 3 Jan 2012 16:45:16 +0000 (16:45 +0000)
src/util.h
src/win32port.h [new file with mode: 0644]

index f6601d3..58e0b85 100644 (file)
 #define NINJA_UTIL_H_
 #pragma once
 
+#ifdef WIN32
+#include "win32port.h"
+#else
 #include <stdint.h>
+#endif
 
 #include <string>
 using namespace std;
diff --git a/src/win32port.h b/src/win32port.h
new file mode 100644 (file)
index 0000000..a39590f
--- /dev/null
@@ -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