aboutsummaryrefslogtreecommitdiff
path: root/include/rpc/xdr.h
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2012-09-02 22:23:23 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2012-09-02 22:23:23 +0000
commit46f442e58a27db3c9a4d8e4db6789f0d22dacf58 (patch)
treebfbbe261693a70827db52029f30608eb237280cd /include/rpc/xdr.h
parent370c6ad8ce0240dea404b09164528ec7142eb94b (diff)
downloadsrc-46f442e58a27db3c9a4d8e4db6789f0d22dacf58.tar.gz
src-46f442e58a27db3c9a4d8e4db6789f0d22dacf58.zip
Revert r240060: (Partial)
__BEGIN_DECLS and __END_DECLS in cdefs.h take care of the __cplusplus mangling issues so most of the definitions were redundant. In the few places where they were not redundant we should use BSD style instead of the guards used upstream. Reported by: Yuri Pankov
Notes
Notes: svn path=/head/; revision=240062
Diffstat (limited to 'include/rpc/xdr.h')
-rw-r--r--include/rpc/xdr.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/include/rpc/xdr.h b/include/rpc/xdr.h
index 1ef569a8e532..ada5c5bdb1b8 100644
--- a/include/rpc/xdr.h
+++ b/include/rpc/xdr.h
@@ -43,10 +43,6 @@
#define _RPC_XDR_H
#include <sys/cdefs.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* XDR provides a conventional way for converting between C data
* types and an external bit-string representation. Library supplied
@@ -370,8 +366,4 @@ extern bool_t xdrrec_eof(XDR *);
extern u_int xdrrec_readbytes(XDR *, caddr_t, u_int);
__END_DECLS
-#ifdef __cplusplus
-}
-#endif
-
#endif /* !_RPC_XDR_H */