зеркало из https://github.com/mozilla/gecko-dev.git
Ok, after further thought, the last attempt wasn't going to work as the mac project files were not updated so we'll just put Guha's stuff in ifdefs.
This commit is contained in:
Родитель
b19bd56d44
Коммит
903ff9a81d
|
@ -29,9 +29,13 @@
|
||||||
class nsIRDFDataSource;
|
class nsIRDFDataSource;
|
||||||
class nsIRDFDataBase;
|
class nsIRDFDataBase;
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
// in nsMemoryDataSource.cpp
|
// in nsMemoryDataSource.cpp
|
||||||
nsresult NS_NewRDFInMemoryDataSource(nsIRDFDataSource** result);
|
nsresult NS_NewRDFInMemoryDataSource(nsIRDFDataSource** result);
|
||||||
|
#else
|
||||||
|
// in nsMemoryDataSource.cpp
|
||||||
|
nsresult NS_NewRDFMemoryDataSource(nsIRDFDataSource** result);
|
||||||
|
#endif
|
||||||
// in nsSimpleDataBase.cpp
|
// in nsSimpleDataBase.cpp
|
||||||
nsresult NS_NewRDFSimpleDataBase(nsIRDFDataBase** result);
|
nsresult NS_NewRDFSimpleDataBase(nsIRDFDataBase** result);
|
||||||
|
|
||||||
|
|
|
@ -117,7 +117,11 @@ RDFFactoryImpl::CreateInstance(nsISupports *aOuter,
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
else if (mClassID.Equals(kRDFMemoryDataSourceCID)) {
|
else if (mClassID.Equals(kRDFMemoryDataSourceCID)) {
|
||||||
|
#ifdef _WIN32
|
||||||
if (NS_FAILED(rv = NS_NewRDFInMemoryDataSource((nsIRDFDataSource**) &inst)))
|
if (NS_FAILED(rv = NS_NewRDFInMemoryDataSource((nsIRDFDataSource**) &inst)))
|
||||||
|
#else
|
||||||
|
if (NS_FAILED(rv = NS_NewRDFMemoryDataSource((nsIRDFDataSource**) &inst)))
|
||||||
|
#endif
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
else if (mClassID.Equals(kRDFStreamDataSourceCID)) {
|
else if (mClassID.Equals(kRDFStreamDataSourceCID)) {
|
||||||
|
|
|
@ -32,9 +32,13 @@ class nsIRDFDataBase;
|
||||||
// in nsBookmarkDataSource.cpp
|
// in nsBookmarkDataSource.cpp
|
||||||
nsresult NS_NewRDFBookmarkDataSource(nsIRDFDataSource** result);
|
nsresult NS_NewRDFBookmarkDataSource(nsIRDFDataSource** result);
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
// in nsMemoryDataSource.cpp
|
// in nsMemoryDataSource.cpp
|
||||||
nsresult NS_NewRDFInMemoryDataSource(nsIRDFDataSource** result);
|
nsresult NS_NewRDFInMemoryDataSource(nsIRDFDataSource** result);
|
||||||
|
#else
|
||||||
|
// in nsMemoryDataSource.cpp
|
||||||
|
nsresult NS_NewRDFMemoryDataSource(nsIRDFDataSource** result);
|
||||||
|
#endif
|
||||||
// in nsSimpleDataBase.cpp
|
// in nsSimpleDataBase.cpp
|
||||||
nsresult NS_NewRDFSimpleDataBase(nsIRDFDataBase** result);
|
nsresult NS_NewRDFSimpleDataBase(nsIRDFDataBase** result);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче