Reviewers: Vyacheslav Egorov,
Description:
Fix compilation of D8 with console=readline
BUG=
TEST=
Please review this at http://codereview.chromium.org/6901027/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/d8-readline.cc
Index: src/d8-readline.cc
diff --git a/src/d8-readline.cc b/src/d8-readline.cc
index
67fc9eff7e528fd66dba1e724f2e42909dd76668..7a72bf77a43631fa839ce1f8514555a6e8cd7bb4
100644
--- a/src/d8-readline.cc
+++ b/src/d8-readline.cc
@@ -30,6 +30,8 @@
#include <readline/readline.h> // NOLINT
#include <readline/history.h> // NOLINT
+// The readline includes defines RETURN which breaks V8 compilation.
+#undef RETURN
#include "d8.h"
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev