diff --git a/xpcom/base/nsLeakDetector.cpp b/xpcom/base/nsLeakDetector.cpp index d6d255981c81..4889466dd648 100644 --- a/xpcom/base/nsLeakDetector.cpp +++ b/xpcom/base/nsLeakDetector.cpp @@ -20,6 +20,8 @@ * Patrick C. Beard */ +#if defined(GC_LEAK_DETECTOR) + #include "nsLeakDetector.h" #include "nsComponentManager.h" #include "nsIGenericFactory.h" @@ -117,3 +119,5 @@ nsresult NS_ShutdownLeakDetector() return NS_OK; } + +#endif /* defined(GC_LEAK_DETECTOR) */