From e9d590dbb4b2ecd19bdc5450557241972eabf96b Mon Sep 17 00:00:00 2001 From: "waterson%netscape.com" Date: Sun, 14 May 2000 00:17:47 +0000 Subject: [PATCH] Also wrap in #ifdef __cplusplus --- xpcom/base/nscore.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xpcom/base/nscore.h b/xpcom/base/nscore.h index 49af18c9de3e..969d7eaffdde 100644 --- a/xpcom/base/nscore.h +++ b/xpcom/base/nscore.h @@ -253,6 +253,7 @@ typedef PRUint16 PRUnichar; /* 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. */ +#ifdef __cplusplus extern "C++" { template @@ -272,4 +273,6 @@ NS_MAX( const T& a, const T& b ) } } +#endif /* __cplusplus */ + #endif /* nscore_h___ */