Commit 05eb777e authored by Ms2ger's avatar Ms2ger
Browse files

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

parent 845f60f3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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"
+0 −2
Original line number Diff line number Diff line
@@ -3657,8 +3657,6 @@ private:
/**************************************************************/
// All of our thread local storage.

#define BAD_TLS_INDEX ((PRUint32) -1)

class XPCPerThreadData
{
    typedef mozilla::Mutex Mutex;
+4 −0
Original line number Diff line number Diff line
@@ -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,