зеркало из https://github.com/mozilla/pjs.git
renamed NSGetFactory to build on Mac
This commit is contained in:
Родитель
26e3be487b
Коммит
4036ac81f1
|
@ -160,7 +160,11 @@ nsresult nsGfxFactoryMac::LockFactory(PRBool aLock)
|
|||
}
|
||||
|
||||
// return the proper factory to the caller
|
||||
#ifdef XP_MAC
|
||||
extern "C" NS_GFXNONXP nsresult NSGetFactory_GFXWIN_DLL(const nsCID &aClass, nsIFactory **aFactory)
|
||||
#else
|
||||
extern "C" NS_GFXNONXP nsresult NSGetFactory(const nsCID &aClass, nsIFactory **aFactory)
|
||||
#endif
|
||||
{
|
||||
if (nsnull == aFactory) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -150,7 +150,11 @@ nsresult nsViewFactory::LockFactory(PRBool aLock)
|
|||
}
|
||||
|
||||
// return the proper factory to the caller
|
||||
#ifdef XP_MAC
|
||||
extern "C" NS_VIEW nsresult NSGetFactory_VIEW_DLL(const nsCID &aClass, nsIFactory **aFactory)
|
||||
#else
|
||||
extern "C" NS_VIEW nsresult NSGetFactory(const nsCID &aClass, nsIFactory **aFactory)
|
||||
#endif
|
||||
{
|
||||
if (nsnull == aFactory) {
|
||||
return NS_ERROR_NULL_POINTER;
|
||||
|
|
|
@ -27,7 +27,11 @@ static NS_DEFINE_IID(kThrobberCID, NS_THROBBER_CID);
|
|||
static NS_DEFINE_IID(kWebShellCID, NS_WEB_SHELL_CID);
|
||||
|
||||
extern "C" NS_WEB nsresult
|
||||
#ifdef XP_MAC
|
||||
NSGetFactory_WEB_DLL(const nsCID& aClass, nsIFactory** aFactory)
|
||||
#else
|
||||
NSGetFactory(const nsCID& aClass, nsIFactory** aFactory)
|
||||
#endif
|
||||
{
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
|
@ -47,3 +51,4 @@ NSGetFactory(const nsCID& aClass, nsIFactory** aFactory)
|
|||
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче