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
Родитель 09dac5f140
Коммит d9a7d33e9a
3 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

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