mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Wrap C++ in |extern C++| block to fix build. r=scc
This commit is contained in:
parent
8bbcc675f6
commit
d272d6d54b
@ -250,6 +250,11 @@ typedef PRUint16 PRUnichar;
|
||||
the semantics. So if you want to dynamic_cast, then just use it
|
||||
"straight", no macro. */
|
||||
|
||||
/* Because this may be included bogously a C file (or an extern "C"
|
||||
block), we'll "extern C++" it. There's a bug filed against that
|
||||
somewhere. */
|
||||
extern "C++" {
|
||||
|
||||
template <class T>
|
||||
inline
|
||||
const T&
|
||||
@ -265,6 +270,6 @@ NS_MAX( const T& a, const T& b )
|
||||
{
|
||||
return a > b ? a : b;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#endif /* nscore_h___ */
|
||||
|
Loading…
Reference in New Issue
Block a user