From 10339416e4c4249c7cc0bda3d501bbc4f8fdd20f Mon Sep 17 00:00:00 2001 From: Brian Barrett Date: Thu, 18 Aug 2005 15:48:59 +0000 Subject: [PATCH] * add C++ mangling protection This commit was SVN r6925. --- opal/runtime/opal.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/opal/runtime/opal.h b/opal/runtime/opal.h index 1d42d7eb42..e3ccd35087 100644 --- a/opal/runtime/opal.h +++ b/opal/runtime/opal.h @@ -19,6 +19,10 @@ #ifndef OPAL_H #define OPAL_H +#if defined(c_plusplus) || defined(__cplusplus) +extern "C" { +#endif + /** * Initialize the OPAL utilities * @@ -39,4 +43,8 @@ int opal_init(void); */ int opal_finalize(void); +#if defined(c_plusplus) || defined(__cplusplus) +} +#endif + #endif