From 8fbc00d3ef23572281d0bd1a283534e770347a45 Mon Sep 17 00:00:00 2001 From: "dougt%netscape.com" Date: Wed, 29 Jun 2005 18:32:46 +0000 Subject: [PATCH] Damn the nmake build system and the mac. --- xpcom/sample/program/nsTestSample.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/xpcom/sample/program/nsTestSample.cpp b/xpcom/sample/program/nsTestSample.cpp index 68a086fd2dbd..8d49a70bb109 100644 --- a/xpcom/sample/program/nsTestSample.cpp +++ b/xpcom/sample/program/nsTestSample.cpp @@ -48,7 +48,10 @@ #include "nsIServiceManager.h" #include "nsXPIDLString.h" #include "nsIComponentRegistrar.h" + +#ifdef XPCOM_GLUE #include "nsXPCOMGlue.h" +#endif #define NS_SAMPLE_CONTRACTID "@mozilla.org/sample;1" @@ -57,7 +60,9 @@ main(void) { nsresult rv; +#ifdef XPCOM_GLUE XPCOMGlueStartup(nsnull); +#endif // Initialize XPCOM nsCOMPtr servMan; @@ -135,6 +140,8 @@ main(void) // Shutdown XPCOM NS_ShutdownXPCOM(nsnull); - +#ifdef XPCOM_GLUE + XPCOMGlueShutdown(); +#endif return 0; }