use extern "C" so that this header file can be included in c++.
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 8 Nov 2010 16:53:20 +0000 (10:53 -0600)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 8 Nov 2010 16:53:20 +0000 (10:53 -0600)
src/conv-core/persistent.h

index 670c75883502c8715e79227b020937cd3433a1ae..23bf50e18715c443a5f0e30d3be518aee564a585 100644 (file)
 #ifndef __PERSISTENT_H__
 #define __PERSISTENT_H__
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 typedef void * PersistentHandle;
 
 #if CMK_PERSISTENT_COMM
@@ -70,4 +74,8 @@ typedef int PersistentRecvHandle;
 
 #endif
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif