Bug 1295763 - Allow ThreadSafeAutoRefCnt with XPCOM_GLUE - r=froydnj

Removed '#ifndef XPCOM_GLUE' that blocked usage of thread-safe ref-counting
from XPCOM_GLUE code.

MozReview-Commit-ID: Hm0rdTKK46l

--HG--
extra : rebase_source : cd2779d0b39c5319cfdb5d12e8f4ac6f38945e7b
This commit is contained in:
Gerald Squelart 2016-08-16 14:07:16 +10:00
parent 40188f3de6
commit fb84b054bc

View File

@ -20,9 +20,7 @@
#include "nsDebug.h"
#include "nsXPCOM.h"
#ifndef XPCOM_GLUE
#include "mozilla/Atomics.h"
#endif
#include "mozilla/Attributes.h"
#include "mozilla/Assertions.h"
#include "mozilla/Compiler.h"
@ -331,7 +329,6 @@ private:
nsrefcnt mValue;
};
#ifndef XPCOM_GLUE
namespace mozilla {
class ThreadSafeAutoRefCnt
{
@ -360,7 +357,6 @@ private:
Atomic<nsrefcnt> mValue;
};
} // namespace mozilla
#endif
///////////////////////////////////////////////////////////////////////////////