libnfs-private.h: wrap in extern "C" for C++ compatibility
authorArne Redlich <arne.redlich@googlemail.com>
Thu, 13 Feb 2014 21:27:57 +0000 (22:27 +0100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 20 Feb 2014 02:39:52 +0000 (18:39 -0800)
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com>
include/libnfs-private.h

index 2cc61c3b06a57857d9db6889e7987f40fed0c35b..b22d9b6e89ac7d0bc6d1aa731ce6ca1f2cecdb05 100644 (file)
@@ -28,6 +28,9 @@
 
 #include "libnfs-zdr.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 #if !defined(HAVE_SOCKADDR_STORAGE) && !defined(WIN32)
 /*
@@ -154,4 +157,8 @@ void rpc_free_all_fragments(struct rpc_context *rpc);
 
 const struct nfs_fh3 *nfs_get_rootfh(struct nfs_context *nfs);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* !_LIBNFS_PRIVATE_H_ */