libnfs.h: wrap in extern "C" for C++ compatibility
authorArne Redlich <arne.redlich@googlemail.com>
Sun, 16 Feb 2014 20:36:17 +0000 (21:36 +0100)
committerRonnie Sahlberg <ronniesahlberg@gmail.com>
Thu, 20 Feb 2014 02:42:03 +0000 (18:42 -0800)
Signed-off-by: Arne Redlich <arne.redlich@googlemail.com>
include/nfsc/libnfs.h

index da03f440f4476782f5b44bf4fb7c3a2794fc4bd9..46571113fe24e4c239cac8b36de2b2749a184aa9 100644 (file)
 #include <sys/time.h>
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 struct nfs_context;
 struct rpc_context;
 
@@ -1162,4 +1166,8 @@ struct nfs_server_list {
 struct nfs_server_list *nfs_find_local_servers(void);
 void free_nfs_srvr_list(struct nfs_server_list *srv);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* !_LIBNFS_H_ */