Skip to content
Snippets Groups Projects
Commit 3a6d1d71 authored by rswindell's avatar rswindell
Browse files

Fixed Borland compile problem (missing DLLCALL in jsval_isNaN).

parent 04f4c807
No related branches found
No related tags found
No related merge requests found
......@@ -283,12 +283,12 @@ DLLEXPORT int DLLCALL sbbs_random(int n)
static js_server_props_t js_server_props;
JSBool
jsval_isNaN(JSContext *cx, jsval v)
DLLCALL jsval_isNaN(JSContext *cx, jsval v)
{
jsdouble d;
if(JSVAL_IS_DOUBLE(v)) {
if (!JS_ValueToNumber(cx, v, &d))
if(!JS_ValueToNumber(cx, v, &d))
return JS_FALSE;
if(JSDOUBLE_IS_NaN(d))
return JS_TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment