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