From 4641d36ef4f8bbfa91fb910f872ebe3712fc2e6e Mon Sep 17 00:00:00 2001 From: Arne Redlich Date: Thu, 13 Feb 2014 22:28:54 +0100 Subject: [PATCH] libnfs-raw.h: wrap in extern "C" for C++ compatibility Signed-off-by: Arne Redlich --- include/nfsc/libnfs-raw.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/nfsc/libnfs-raw.h b/include/nfsc/libnfs-raw.h index 49e8504..180322b 100644 --- a/include/nfsc/libnfs-raw.h +++ b/include/nfsc/libnfs-raw.h @@ -25,6 +25,10 @@ #include #include +#ifdef __cplusplus +extern "C" { +#endif + struct rpc_data { int size; unsigned char *data; @@ -1500,4 +1504,8 @@ EXTERN int rpc_nsm1_simucrash_async(struct rpc_context *rpc, rpc_cb cb, void *pr struct NSM1_NOTIFYargs; EXTERN int rpc_nsm1_notify_async(struct rpc_context *rpc, rpc_cb cb, struct NSM1_NOTIFYargs *args, void *private_data); +#ifdef __cplusplus +} +#endif + #endif -- 2.34.1