Index: runtime/platform/globals.h |
diff --git a/runtime/platform/globals.h b/runtime/platform/globals.h |
index 2092d2dc319a290ae1d92122f8a7ab852bb5d04c..5fc7f006e78a46467ed00752dc5196b1d32b9a17 100644 |
--- a/runtime/platform/globals.h |
+++ b/runtime/platform/globals.h |
@@ -255,6 +255,11 @@ const uint64_t kMaxUint64 = DART_2PART_UINT64_C(0xFFFFFFFF, FFFFFFFF); |
typedef intptr_t word; |
typedef uintptr_t uword; |
+#if defined(TARGET_OS_WINDOWS) || defined(TARGET_OS_MACOS) |
+// off64_t is not defined on Windows or Mac OS. |
+typedef int64_t off64_t; |
+#endif |
+ |
// Byte sizes. |
const int kWordSize = sizeof(word); |
const int kDoubleSize = sizeof(double); // NOLINT |