Fix compilation of D8 with console=readline
authorsgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 26 Apr 2011 13:26:05 +0000 (13:26 +0000)
committersgjesse@chromium.org <sgjesse@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 26 Apr 2011 13:26:05 +0000 (13:26 +0000)
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

index 67fc9eff7e528fd66dba1e724f2e42909dd76668..08395e53de103aa481aa2752bdf94db15bdbc0ad 100644 (file)
@@ -30,6 +30,8 @@
 #include <readline/readline.h> // NOLINT
 #include <readline/history.h> // NOLINT
 
+// The readline includes leaves RETURN defined which breaks V8 compilation.
+#undef RETURN
 
 #include "d8.h"