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:
scc%netscape.com 1999-05-04 10:23:56 +00:00
parent 09dac5f140
commit d9a7d33e9a
3 changed files with 12 additions and 0 deletions

View File

@ -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 */

View File

@ -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 */

View File

@ -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 */