Missing extern for C++
authorBruno Cabral <bcabral@uw.edu>
Mon, 31 Mar 2014 10:51:44 +0000 (10:51 +0000)
committerBruno Cabral <bcabral@uw.edu>
Mon, 31 Mar 2014 10:51:44 +0000 (10:51 +0000)
src/include/gnunet_friends_lib.h

index a6078765474359656af5cf9c27058cea0da5d17f..d12f7f9910476c47fdbb5cbe83575bbafddbd001 100644 (file)
 #ifndef GNUNET_FRIENDS_LIB_H
 #define GNUNET_FRIENDS_LIB_H
 
+#ifdef __cplusplus
+extern "C"
+{
+#if 0                           /* keep Emacsens' auto-indent happy */
+}
+#endif
+#endif
+
 #include "gnunet_util_lib.h"
 
 
@@ -92,4 +100,11 @@ GNUNET_FRIENDS_write (struct GNUNET_FRIENDS_Writer *w,
                       const struct GNUNET_PeerIdentity *friend_id);
 
 
+                                         #if 0                           /* keep Emacsens' auto-indent happy */
+{
+#endif
+#ifdef __cplusplus
+}
+#endif
+
 #endif