Index: src/d8-readline.cc |
diff --git a/src/d8-readline.cc b/src/d8-readline.cc |
index 67fc9eff7e528fd66dba1e724f2e42909dd76668..08395e53de103aa481aa2752bdf94db15bdbc0ad 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 leaves RETURN defined which breaks V8 compilation. |
+#undef RETURN |
#include "d8.h" |