1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-10 09:35:46 +01:00

Make binaries compilable on non-hemorrhage-edge releases. Add binaries subrepo.

This commit is contained in:
Kris Maglione
2011-09-23 16:40:56 -04:00
parent e1db34990b
commit 39ceae4f92
7 changed files with 79 additions and 42 deletions

View File

@@ -40,6 +40,10 @@
#ifndef mozJSLoaderUtils_h
#define mozJSLoaderUtils_h
#if defined(GECKO_MAJOR) && GECKO_MAJOR < 9
#endif
/*
* This is evil. Very evil.
#define nsString_h___
@@ -50,6 +54,22 @@
#include "nsStringAPI.h"
#include "jsapi.h"
#if defined(GECKO_MAJOR) && GECKO_MAJOR < 9
#include "jsapi.h"
# define JS_XDRScript JS_XDRScriptObject
typedef JSObject JSScriptType;
# define NewObjectInputStreamFromBuffer NS_NewObjectInputStreamFromBuffer
# define NewBufferFromStorageStream NS_NewBufferFromStorageStream
# if GECKO_MAJOR > 6
# define NewObjectOutputWrappedStorageStream NS_NewObjectOutputWrappedStorageStream
# else
# define NewObjectOutputWrappedStorageStream(a, b, c) NS_NewObjectOutputWrappedStorageStream((a), (b))
# endif
#else
typedef JSScript JSScriptType;
#endif
class nsIURI;
namespace mozilla {
@@ -60,9 +80,9 @@ class StartupCache;
nsresult
ReadCachedScript(nsIStartupCache* cache, nsACString &uri,
JSContext *cx, JSScript **scriptObj);
JSContext *cx, JSScriptType **scriptObj);
nsresult
WriteCachedScript(nsIStartupCache* cache, nsACString &uri,
JSContext *cx, JSScript *scriptObj);
JSContext *cx, JSScriptType *scriptObj);
#endif /* mozJSLoaderUtils_h */