summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2012-11-08 20:09:40 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2012-11-08 20:09:40 +0000
commit2a63ce87bbc186c4f7098b1a326f4246344d0ac3 (patch)
tree9186bf09e24d3e8bf973db735f14378c5c27f6c6
parent85ede7192dda83438812f627e96e953fde0d2fef (diff)
downloadnetsurf-2a63ce87bbc186c4f7098b1a326f4246344d0ac3.tar.gz
netsurf-2a63ce87bbc186c4f7098b1a326f4246344d0ac3.tar.bz2
Spidermonkey 1.70 headers don't have JS_SET_RVAL
-rw-r--r--javascript/jsapi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/javascript/jsapi.h b/javascript/jsapi.h
index b7e91948e..bfdcfaf1f 100644
--- a/javascript/jsapi.h
+++ b/javascript/jsapi.h
@@ -58,6 +58,7 @@
/* return value setter */
#define JSAPI_SET_RVAL(cx, vp, v) (*jsapi_rval = (v))
+#define JS_SET_RVAL(cx, vp, v) (*(vp) = (v))
/* arguments */
#define JSAPI_ARGV(cx, vp) (vp)