зеркало из https://github.com/mozilla/gecko-dev.git
Fix bustage from previous checkin for bug 392055. Move #define of XPCOM_GLUE_AVOID_NSPR from nsISupportsImpl.h to nscore.h. r/a=bsmedberg
This commit is contained in:
Родитель
02ad1cc2f0
Коммит
f7413d87e3
|
@ -460,6 +460,15 @@ typedef PRUint32 nsrefcnt;
|
||||||
#else
|
#else
|
||||||
#define NS_LIKELY(x) (!!(x))
|
#define NS_LIKELY(x) (!!(x))
|
||||||
#define NS_UNLIKELY(x) (!!(x))
|
#define NS_UNLIKELY(x) (!!(x))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/*
|
||||||
|
* If we're being linked as standalone glue, we don't want a dynamic dependency
|
||||||
|
* on NSPR libs, so we skip the debug thread-safety checks, and we cannot use
|
||||||
|
* the THREADSAFE_ISUPPORTS macros.
|
||||||
|
*/
|
||||||
|
#if defined(XPCOM_GLUE) && !defined(XPCOM_GLUE_USE_NSPR)
|
||||||
|
#define XPCOM_GLUE_AVOID_NSPR
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* nscore_h___ */
|
#endif /* nscore_h___ */
|
||||||
|
|
|
@ -50,15 +50,6 @@
|
||||||
#include "nsISupportsUtils.h"
|
#include "nsISupportsUtils.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(XPCOM_GLUE) && !defined(XPCOM_GLUE_USE_NSPR)
|
|
||||||
// If we're being linked as standalone glue, we don't want a dynamic dependency
|
|
||||||
// on NSPR libs, so we skip the debug thread-safety checks, and we cannot use
|
|
||||||
// the THREADSAFE_ISUPPORTS macros.
|
|
||||||
|
|
||||||
#define XPCOM_GLUE_AVOID_NSPR
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#if !defined(XPCOM_GLUE_AVOID_NSPR)
|
#if !defined(XPCOM_GLUE_AVOID_NSPR)
|
||||||
#include "prthread.h" /* needed for thread-safety checks */
|
#include "prthread.h" /* needed for thread-safety checks */
|
||||||
|
|
Загрузка…
Ссылка в новой задаче