From d48be00c5e05a567c04946e5decb8515f7570780 Mon Sep 17 00:00:00 2001 From: Arne Redlich Date: Sun, 16 Feb 2014 21:36:17 +0100 Subject: [PATCH] libnfs.h: wrap in extern "C" for C++ compatibility Signed-off-by: Arne Redlich --- include/nfsc/libnfs.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/nfsc/libnfs.h b/include/nfsc/libnfs.h index da03f44..4657111 100644 --- a/include/nfsc/libnfs.h +++ b/include/nfsc/libnfs.h @@ -29,6 +29,10 @@ #include #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_ */ -- 2.34.1