From 24a9d52d3d6e7ee33b1a16458e2f291084d415fd Mon Sep 17 00:00:00 2001 From: "sgjesse@chromium.org" Date: Tue, 26 Apr 2011 13:26:05 +0000 Subject: [PATCH] Fix compilation of D8 with console=readline BUG= TEST= Review URL: http://codereview.chromium.org//6901027 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7680 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/d8-readline.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/d8-readline.cc b/src/d8-readline.cc index 67fc9eff7e..08395e53de 100644 --- a/src/d8-readline.cc +++ b/src/d8-readline.cc @@ -30,6 +30,8 @@ #include // NOLINT #include // NOLINT +// The readline includes leaves RETURN defined which breaks V8 compilation. +#undef RETURN #include "d8.h"