1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- --- libtirpc-0.2.4.orig/tirpc/rpc/xdr.h 2013-12-09 21:59:51.000000000 +0100
- +++ libtirpc-0.2.4/tirpc/rpc/xdr.h 2014-05-10 17:56:08.818483343 +0200
- @@ -40,7 +40,6 @@
-
- #ifndef _TIRPC_XDR_H
- #define _TIRPC_XDR_H
- -#include <sys/cdefs.h>
- #include <stdio.h>
- #include <netinet/in.h>
-
- @@ -287,7 +286,9 @@ struct xdr_discrim {
-
- -__BEGIN_DECLS
- +#ifdef __cplusplus
- +extern "C" {
- +#endif
- extern bool_t xdr_void(void);
- extern bool_t xdr_int(XDR *, int *);
- extern bool_t xdr_u_int(XDR *, u_int *);
- @@ -330,7 +331,9 @@ extern bool_t xdr_hyper(XDR *, quad_t *)
- extern bool_t xdr_u_hyper(XDR *, u_quad_t *);
- extern bool_t xdr_longlong_t(XDR *, quad_t *);
- extern bool_t xdr_u_longlong_t(XDR *, u_quad_t *);
- -__END_DECLS
- +#ifdef __cplusplus
- +}
- +#endif
-
-
- -__BEGIN_DECLS
- +#ifdef __cplusplus
- +extern "C" {
- +#endif
-
- extern void xdrmem_create(XDR *, char *, u_int, enum xdr_op);
-
- @@ -369,6 +374,8 @@ extern bool_t xdrrec_skiprecord(XDR *);
-
- extern bool_t xdrrec_eof(XDR *);
- extern u_int xdrrec_readbytes(XDR *, caddr_t, u_int);
- -__END_DECLS
- +#ifdef __cplusplus
- +}
- +#endif
-
- #endif
|