From: Braden M. <br...@us...> - 2007-07-09 08:14:58
|
Update of /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2946/src/libopenvrml/openvrml Modified Files: Tag: OpenVRML-0_16-BRANCH script.cpp Log Message: Define JS_THREADSAFE when compiling against newer libmozjs. This is required when building against the libmozjs included with Firefox 2.0. Index: script.cpp =================================================================== RCS file: /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml/script.cpp,v retrieving revision 1.77.2.3 retrieving revision 1.77.2.4 diff -C2 -d -r1.77.2.3 -r1.77.2.4 *** script.cpp 18 Apr 2007 03:58:01 -0000 1.77.2.3 --- script.cpp 9 Jul 2007 08:14:58 -0000 1.77.2.4 *************** *** 3217,3220 **** --- 3217,3227 ---- assert(this->cx); + # ifdef JS_THREADSAFE + JS_SetContextThread(this->cx); + openvrml_::scope_guard context_thread_guard = + openvrml_::make_guard(&JS_ClearContextThread, this->cx); + boost::ignore_unused_variable_warning(context_thread_guard); + # endif + jsval fval, rval; JSObject * const globalObj = JS_GetGlobalObject(this->cx); |