-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathxdrf.h
executable file
·28 lines (21 loc) · 1.12 KB
/
xdrf.h
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
/*_________________________________________________________________
|
| xdrf.h - include file for C routines that want to use the
| functions below.
*/
// Update April 2022
// added this definition in to avoid a C99 requirement that no
// implicit function names are included. The code here actually overwrits
// what xdrstdio_create does but we define it here to ensure the XDRF library
// here can be defined as a stand-alone codebase
// Updated January 2024
// In the last few years, the xdrstdio_create function definition has been
// added to /usr/include/rpc/xdr.h, which is associated with the libntirpc
// package. Defining it twice creates an issue, so to avoid this we have
// gone back to commenting this line out. HOWEVER, if you are missing the
// libntirpc and/or can't install, you can uncomment the line below.
// If missing RPC uncomment (probably should be a void returntype?)
// int xdrstdio_create(XDR *xdrs, const char *filename, const char *type);
int xdropen(XDR *xdrs, const char *filename, const char *type);
int xdrclose(XDR *xdrs) ;
int xdr3dfcoord(XDR *xdrs, float *fp, int *size, float *precision) ;