bug 462004 - fixup visibility of readline symbols. r=bsmedberg
authorTed Mielczarek <ted.mielczarek@gmail.com>
Thu, 05 Feb 2009 11:34:20 -0800
changeset 23148 69d5afdba6c0d32b60d0f01580ed4d61dc2f35f2
parent 23145 89a76e45e282e6911ecc8b67369ba21bb99e01b8
child 23149 9cd0940a9cf2129b4a88f8b2b02992879dd19a6c
push id622
push userrsayre@mozilla.com
push dateThu, 05 Feb 2009 19:38:01 +0000
reviewersbsmedberg
bugs462004
milestone1.9.1b3pre
bug 462004 - fixup visibility of readline symbols. r=bsmedberg
js/src/js.cpp
--- a/js/src/js.cpp
+++ b/js/src/js.cpp
@@ -136,18 +136,18 @@ typedef enum JSShellErrNum {
 
 static const JSErrorFormatString *
 my_GetErrorMessage(void *userRef, const char *locale, const uintN errorNumber);
 static JSObject *
 split_setup(JSContext *cx);
 
 #ifdef EDITLINE
 JS_BEGIN_EXTERN_C
-extern char     *readline(const char *prompt);
-extern void     add_history(char *line);
+JS_EXTERN_API(char)    *readline(const char *prompt);
+JS_EXTERN_API(void)     add_history(char *line);
 JS_END_EXTERN_C
 #endif
 
 static char *
 GetLine(FILE *file, const char * prompt)
 {
     size_t size;
     char *buffer;