From 6046ae7bcdcce9e4b6a869a5b2d4b07ca294ec69 Mon Sep 17 00:00:00 2001 From: "mark@chromium.org" Date: Mon, 17 May 2010 15:41:16 +0000 Subject: [PATCH] Fix dtoa for the LP64 model on 64-bit systems, where long is 64 bits. dtoa.c:69 states: #define Long int on machines with 32-bit ints and 64-bit longs. This change was made in Chromium's version of dtoa in r21901. I don't know why this apparently hasn't caused a problem in v8 until now. I was unable to build a snapshot on x86_64 Mac without this change. BUG=706 TEST=x86_64 Mac GYP/Xcode-based Chromium build (still depends on other changes) git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4665 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/third_party/dtoa/dtoa.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/third_party/dtoa/dtoa.c b/src/third_party/dtoa/dtoa.c index 8917d9d..178b3d1 100644 --- a/src/third_party/dtoa/dtoa.c +++ b/src/third_party/dtoa/dtoa.c @@ -164,8 +164,12 @@ */ #ifndef Long +#if __LP64__ +#define Long int +#else #define Long long #endif +#endif #ifndef ULong typedef unsigned Long ULong; #endif -- 2.7.4