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

index 5d9fe7c2cbdb387cf48e8e61de33d51927cd53cd..501875efd66ba2e640a677da053fcfbeec1a4f5e 100644 (file)
@@ -41,6 +41,10 @@ typedef char *caddr_t;
 #include <stdint.h>
 #include <sys/types.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define _RPC_RPC_H 1
 #define _RPC_ZDR_H 1
 #define _RPC_AUTH_H 1
@@ -280,4 +284,8 @@ struct AUTH *libnfs_authunix_create_default(void);
 #define auth_destroy libnfs_auth_destroy
 void libnfs_auth_destroy(struct AUTH *auth);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif