summaryrefslogtreecommitdiff
path: root/scripting/engine_spidermonkey.h
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/engine_spidermonkey.h')
-rw-r--r--scripting/engine_spidermonkey.h34
1 files changed, 2 insertions, 32 deletions
diff --git a/scripting/engine_spidermonkey.h b/scripting/engine_spidermonkey.h
index 3ee7495..9fd430d 100644
--- a/scripting/engine_spidermonkey.h
+++ b/scripting/engine_spidermonkey.h
@@ -21,18 +21,6 @@
// START inc hacking
-#if defined( MOZJS )
-
-#define MOZILLA_1_8_BRANCH
-
-#include "mozjs/jsapi.h"
-#include "mozjs/jsdate.h"
-#include "mozjs/jsregexp.h"
-
-#warning if you are using an ubuntu version of spider monkey, we recommend installing spider monkey from source
-
-#elif defined( OLDJS )
-
#ifdef WIN32
#include "jstypes.h"
#undef JS_PUBLIC_API
@@ -46,30 +34,11 @@
#include "jsdate.h"
#include "jsregexp.h"
-#else
-
-#include "js/jsapi.h"
-#include "js/jsobj.h"
-#include "js/jsdate.h"
-#include "js/jsregexp.h"
-
-#endif
-
// END inc hacking
// -- SM 1.6 hacks ---
#ifndef JSCLASS_GLOBAL_FLAGS
-
-#warning old version of spider monkey ( probably 1.6 ) you should upgrade to at least 1.7
-
-#define JSCLASS_GLOBAL_FLAGS 0
-
-JSBool JS_CStringsAreUTF8() {
- return false;
-}
-
-#define SM16
-
+#error old version of spider monkey ( probably 1.6 ) you should upgrade to at least 1.7
#endif
// -- END SM 1.6 hacks ---
@@ -95,6 +64,7 @@ namespace mongo {
extern JSClass bindata_class;
extern JSClass timestamp_class;
extern JSClass numberlong_class;
+ extern JSClass numberint_class;
extern JSClass minkey_class;
extern JSClass maxkey_class;