From 987f03b42c6fb537e4222334c88ef9f8d2605f64 Mon Sep 17 00:00:00 2001 From: "ramiro%netscape.com" Date: Mon, 31 May 1999 16:29:28 +0000 Subject: [PATCH] Make sure nsTarget.h is complied as C++ source. nsTarget.h is a c++ header, which includes other c++ headers. It needs to be complied as c++ source. If everything in this page needs to be compiled as C code, then why isnt this file a .c file ? git-svn-id: svn://10.0.0.236/trunk@33302 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/caps/src/nsUserDialogHelper.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/mozilla/caps/src/nsUserDialogHelper.cpp b/mozilla/caps/src/nsUserDialogHelper.cpp index 4f22d06804d..1f51742e234 100644 --- a/mozilla/caps/src/nsUserDialogHelper.cpp +++ b/mozilla/caps/src/nsUserDialogHelper.cpp @@ -24,8 +24,25 @@ extern "C" { #include "xp.h" #include "xpgetstr.h" #include "prprf.h" + +#ifdef __cplusplus +} /* extern "C" */ +#endif /* __cplusplus */ + +/* + * This is a c++ header, which includes other c++ headers. It needs to + * be complied as c++ source. + * + * If everything in this page needs to be compiled as C code, then why + * isnt this file a .c file ? + * + */ #include "nsTarget.h" +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + #ifdef XXX extern int CAPS_TARGET_RISK_STR_LOW; extern int CAPS_TARGET_RISK_STR_MEDIUM;