From: Braden M. <br...@us...> - 2007-07-09 08:14:35
|
Update of /cvsroot/openvrml/openvrml/src/libopenvrml/openvrml In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv2913/src/libopenvrml/openvrml Modified Files: 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.82 retrieving revision 1.83 diff -C2 -d -r1.82 -r1.83 *** script.cpp 15 May 2007 02:45:09 -0000 1.82 --- script.cpp 9 Jul 2007 08:14:36 -0000 1.83 *************** *** 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); |