Bug 711240 - Part a: Expose BAD_TLS_INDEX in xpcpublic.h; r=bholley

This commit is contained in:
Ms2ger 2011-12-24 09:26:34 +01:00
parent 86227c89ab
commit 2a9fde8d7d
3 changed files with 5 additions and 3 deletions

View File

@ -56,7 +56,7 @@
#include "nsXPCOM.h"
#include "nsXPCOMPrivate.h"
#include "test_quota.h"
#include "xpcprivate.h"
#include "xpcpublic.h"
#include "AsyncConnectionHelper.h"
#include "CheckQuotaHelper.h"

View File

@ -3657,8 +3657,6 @@ private:
/**************************************************************/
// All of our thread local storage.
#define BAD_TLS_INDEX ((PRUint32) -1)
class XPCPerThreadData
{
typedef mozilla::Mutex Mutex;

View File

@ -56,6 +56,10 @@
class nsIPrincipal;
struct nsDOMClassInfoData;
#ifndef BAD_TLS_INDEX
#define BAD_TLS_INDEX ((PRUint32) -1)
#endif
nsresult
xpc_CreateGlobalObject(JSContext *cx, JSClass *clasp,
nsIPrincipal *principal, nsISupports *ptr,