From 6b01358cc11f590dbe0292e4ed03be34b2acf45c Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Sun, 20 Aug 2006 13:48:24 +0000 Subject: [PATCH] Generate static-component.h file C++ friendly. This commit was SVN r11267. --- config/ompi_mca.m4 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/ompi_mca.m4 b/config/ompi_mca.m4 index 896e4fd042..8b9692222d 100644 --- a/config/ompi_mca.m4 +++ b/config/ompi_mca.m4 @@ -422,6 +422,9 @@ AC_DEFUN([MCA_CONFIGURE_FRAMEWORK],[ /* * \$HEADER\$ */ +#if defined(c_plusplus) || defined(__cplusplus) +extern "C" { +#endif `cat $outfile.extern` @@ -429,6 +432,11 @@ const mca_base_component_t *mca_$2_base_static_components[[]] = { `cat $outfile.struct` NULL }; + +#if defined(c_plusplus) || defined(__cplusplus) +} +#endif + EOF # Only replace the header file if a) it doesn't previously # exist, or b) the contents are different. Do this to not