2008-06-09 Cameron Zwarich <cwzwarich@uwaterloo.ca>
authorcwzwarich@webkit.org <cwzwarich@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Jun 2008 21:02:23 +0000 (21:02 +0000)
committercwzwarich@webkit.org <cwzwarich@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 9 Jun 2008 21:02:23 +0000 (21:02 +0000)
        Reviewed by Sam.

        Add an include for readline/history.h to fix the build for Darwin users
        with the GNU readline library installed. Also, clean up the style of
        the HAVE(READLINE) check.

        * kjs/testkjs.cpp:
        (runInteractive):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@34471 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/kjs/testkjs.cpp

index 079ff14a18e18a7a0410128b96b71c06b2bf5abd..a45899a582e3b842e77cdaa17e675ffd238171fa 100644 (file)
@@ -1,3 +1,14 @@
+2008-06-09  Cameron Zwarich  <cwzwarich@uwaterloo.ca>
+
+        Reviewed by Sam.
+
+        Add an include for readline/history.h to fix the build for Darwin users
+        with the GNU readline library installed. Also, clean up the style of
+        the HAVE(READLINE) check.
+
+        * kjs/testkjs.cpp:
+        (runInteractive):
+
 2008-06-09  Cameron Zwarich  <cwzwarich@uwaterloo.ca>
 
         Reviewed by Darin.
index 45d2c08364fd2a0636ea14e3c48c6a2d9f6ebc44..d2e6e7198b5f8508f951bf628ff1eb5ee83d3620 100644 (file)
@@ -45,6 +45,7 @@
 #endif
 
 #if HAVE(READLINE)
+#include <readline/history.h>
 #include <readline/readline.h>
 #endif
 
@@ -348,7 +349,7 @@ static void runInteractive(GlobalObject* globalObject)
 {   
     bool done = false;
     while (!done) {
-#if HAVE_READLINE
+#if HAVE(READLINE)
         char* line = readline(interactivePrompt);
         if (!line)
             break;