From d272d6d54b68dfa3a7cd431ec9928b815a6a583b Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Sun, 14 May 2000 00:11:54 +0000 Subject: [PATCH] Wrap C++ in |extern C++| block to fix build. r=scc --- xpcom/base/nscore.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xpcom/base/nscore.h b/xpcom/base/nscore.h index bcaf03258833..49af18c9de3e 100644 --- a/xpcom/base/nscore.h +++ b/xpcom/base/nscore.h @@ -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 inline const T& @@ -265,6 +270,6 @@ NS_MAX( const T& a, const T& b ) { return a > b ? a : b; } - +} #endif /* nscore_h___ */