From afed7afdb1393642d0da2c56de5f31f85eefb945 Mon Sep 17 00:00:00 2001 From: "jfrancis%netscape.com" Date: Fri, 20 Nov 1998 05:02:56 +0000 Subject: [PATCH] mac shared lib conversion, phase 1 git-svn-id: svn://10.0.0.236/trunk@14992 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/view/src/nsViewFactory.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mozilla/view/src/nsViewFactory.cpp b/mozilla/view/src/nsViewFactory.cpp index db0edc1c9fa..63557db3dc5 100644 --- a/mozilla/view/src/nsViewFactory.cpp +++ b/mozilla/view/src/nsViewFactory.cpp @@ -150,8 +150,12 @@ nsresult nsViewFactory::LockFactory(PRBool aLock) } // return the proper factory to the caller -#ifdef XP_MAC +#ifdef MAC_STATIC extern "C" NS_VIEW nsresult NSGetFactory_VIEW_DLL(const nsCID &aClass, nsIFactory **aFactory) +#elif defined(MAC_SHARED) +#pragma export on +extern "C" NS_VIEW nsresult NSGetFactory(const nsCID &aClass, nsIFactory **aFactory) +#pragma export off #else extern "C" NS_VIEW nsresult NSGetFactory(const nsCID &aClass, nsIFactory **aFactory) #endif