зеркало из https://github.com/mozilla/gecko-dev.git
somebody is including this file inside an |extern "C"| declaration. That's bad. I can't find the culprit, but I can mark the important function |extern "C++"| to allow windows to compile.
This commit is contained in:
Родитель
09dac5f140
Коммит
d9a7d33e9a
|
@ -557,6 +557,8 @@ NS_IMETHODIMP _class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \
|
|||
// A type-safe interface for calling |QueryInterface()|. A similar implementation
|
||||
// exists in "nsCOMPtr.h" for use with |nsCOMPtr|s.
|
||||
|
||||
extern "C++" {
|
||||
|
||||
class nsISupports;
|
||||
|
||||
template <class T>
|
||||
|
@ -570,6 +572,8 @@ CallQueryInterface( nsISupports* aSource, T** aDestination )
|
|||
return aSource->QueryInterface(T::GetIID(), aDestination);
|
||||
}
|
||||
|
||||
} // extern "C++"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#endif /* __nsISupportsUtils_h */
|
||||
|
|
|
@ -557,6 +557,8 @@ NS_IMETHODIMP _class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \
|
|||
// A type-safe interface for calling |QueryInterface()|. A similar implementation
|
||||
// exists in "nsCOMPtr.h" for use with |nsCOMPtr|s.
|
||||
|
||||
extern "C++" {
|
||||
|
||||
class nsISupports;
|
||||
|
||||
template <class T>
|
||||
|
@ -570,6 +572,8 @@ CallQueryInterface( nsISupports* aSource, T** aDestination )
|
|||
return aSource->QueryInterface(T::GetIID(), aDestination);
|
||||
}
|
||||
|
||||
} // extern "C++"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#endif /* __nsISupportsUtils_h */
|
||||
|
|
|
@ -557,6 +557,8 @@ NS_IMETHODIMP _class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \
|
|||
// A type-safe interface for calling |QueryInterface()|. A similar implementation
|
||||
// exists in "nsCOMPtr.h" for use with |nsCOMPtr|s.
|
||||
|
||||
extern "C++" {
|
||||
|
||||
class nsISupports;
|
||||
|
||||
template <class T>
|
||||
|
@ -570,6 +572,8 @@ CallQueryInterface( nsISupports* aSource, T** aDestination )
|
|||
return aSource->QueryInterface(T::GetIID(), aDestination);
|
||||
}
|
||||
|
||||
} // extern "C++"
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#endif /* __nsISupportsUtils_h */
|
||||
|
|
Загрузка…
Ссылка в новой задаче