fixed definition for CpvCExtern
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 3 Nov 2006 22:02:51 +0000 (22:02 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 3 Nov 2006 22:02:51 +0000 (22:02 +0000)
src/conv-core/converse.h

index 0d4e81fc658b821d9836766ea49942c958b27898..e504928133e6ff365d3f6a0db818a8cbf1dadb44 100644 (file)
@@ -119,7 +119,11 @@ extern int _Cmi_myrank; /* Normally zero; only 1 during SIGIO handling */
 
 #define CpvDeclare(t,v) t CMK_TAG(Cpv_,v)[2]
 #define CpvExtern(t,v)  extern t CMK_TAG(Cpv_,v)[2]
+#ifdef __cplusplus
+#define CpvCExtern(t,v)    extern "C" t CMK_TAG(Cpv_,v)[2]
+#else
 #define CpvCExtern(t,v)    CpvExtern(t,v)
+#endif
 #define CpvStaticDeclare(t,v) static t CMK_TAG(Cpv_,v)[2]
 #define CpvInitialize(t,v) do {} while(0)
 #define CpvInitialized(v) 1