summaryrefslogtreecommitdiff
path: root/couchjs
diff options
context:
space:
mode:
authorPaul J. Davis <paul.joseph.davis@gmail.com>2011-11-09 13:41:59 -0600
committerPaul J. Davis <paul.joseph.davis@gmail.com>2011-11-09 13:55:48 -0600
commit3462a5692ea0a7d76a024fbe38a8026e44e72876 (patch)
treec217ec206f401c4064f36ccc86c8e2ee5e88054b /couchjs
parent89850ce8d8ae32f8e0c3803655643a265b3f7fbd (diff)
Add check for JS script object type
Diffstat (limited to 'couchjs')
-rw-r--r--couchjs/c_src/SConscript7
1 files changed, 7 insertions, 0 deletions
diff --git a/couchjs/c_src/SConscript b/couchjs/c_src/SConscript
index a5f8b66b..da3752bc 100644
--- a/couchjs/c_src/SConscript
+++ b/couchjs/c_src/SConscript
@@ -86,6 +86,13 @@ if not env.GetOption('clean'):
conf.Define(vsn)
break
+ ## Find the proper type for JS script objects
+
+ if conf.CheckType("JSScript*", '#include "%s"' % jsapi):
+ conf.Define("JSSCRIPT_TYPE", "JSScript*")
+ else:
+ conf.Define("JSSCRIPT_TYPE", "JSObject*")
+
## Define properties for -h / -V
(_, vsn) = runcmd("git describe --match 1.*")