GCC/linux compat (required extern qualifier, int/JSInt32 conversion)

This was SVN commit r447.
This commit is contained in:
Simon Brenner 2004-06-09 14:02:40 +00:00
parent b520430cb5
commit 609d519d3d
2 changed files with 3 additions and 3 deletions

View File

@ -6,6 +6,6 @@
JSBool WriteLog(JSContext * context, JSObject * globalObject, unsigned int argc, jsval *argv, jsval *rval);
JSFunctionSpec ScriptFunctionTable[];
extern JSFunctionSpec ScriptFunctionTable[];
#endif

View File

@ -225,9 +225,9 @@ void ScriptingHost::SetObjectProperty(JSObject * object, const std::string & pro
int ScriptingHost::ValueToInt(const jsval value)
{
int i = 0;
JSInt32 i = 0;
JSBool ok = JS_ValueToInt32(m_Context, value, (int32*)&i);
JSBool ok = JS_ValueToInt32(m_Context, value, (JSInt32*)&i);
if (ok == JS_FALSE)
{