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:
jag@tty.nl 2007-09-28 13:33:32 -07:00
Родитель 02ad1cc2f0
Коммит f7413d87e3
2 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -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 */