renamed NSGetFactory to build on Mac

git-svn-id: svn://10.0.0.236/trunk@7340 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
pierre%netscape.com
1998-08-05 08:17:06 +00:00
parent f3ed50246f
commit 3d3c42a6c7
5 changed files with 21 additions and 2 deletions

View File

@@ -143,7 +143,11 @@ nsresult nsParserFactory::LockFactory(PRBool aLock)
}
// return the proper factory to the caller
#ifdef XP_MAC
extern "C" NS_EXPORT nsresult NSGetFactory_PARSER_DLL(const nsCID &aClass, nsIFactory **aFactory)
#else
extern "C" NS_EXPORT nsresult NSGetFactory(const nsCID &aClass, nsIFactory **aFactory)
#endif
{
if (nsnull == aFactory) {
return NS_ERROR_NULL_POINTER;
@@ -157,4 +161,3 @@ extern "C" NS_EXPORT nsresult NSGetFactory(const nsCID &aClass, nsIFactory **aFa
return (*aFactory)->QueryInterface(kIFactoryIID, (void**)aFactory);
}