GCC/linux compat (required extern qualifier, int/JSInt32 conversion)
This was SVN commit r447.
This commit is contained in:
parent
b520430cb5
commit
609d519d3d
@ -6,6 +6,6 @@
|
||||
|
||||
JSBool WriteLog(JSContext * context, JSObject * globalObject, unsigned int argc, jsval *argv, jsval *rval);
|
||||
|
||||
JSFunctionSpec ScriptFunctionTable[];
|
||||
extern JSFunctionSpec ScriptFunctionTable[];
|
||||
|
||||
#endif
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user