1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
--- libtirpc-0.2.3.orig/tirpc/rpc/xdr.h 2013-02-13 16:13:59.000000000 +0100
+++ libtirpc-0.2.3/tirpc/rpc/xdr.h 2014-03-22 13:20:52.000000000 +0100
@@ -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 {
/*
* These are the "generic" xdr routines.
*/
-__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 *);
@@ -322,7 +323,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
/*
* Common opaque bytes objects used by many rpc protocols;
@@ -340,7 +343,9 @@ extern bool_t xdr_netobj(XDR *, struct
* These are the public routines for the various implementations of
* xdr streams.
*/
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
/* XDR using memory buffers */
extern void xdrmem_create(XDR *, char *, u_int, enum xdr_op);
@@ -361,6 +366,8 @@ extern bool_t xdrrec_skiprecord(XDR *);
/* true if no more input */
extern bool_t xdrrec_eof(XDR *);
extern u_int xdrrec_readbytes(XDR *, caddr_t, u_int);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
#endif /* !_TIRPC_XDR_H */
|