File: xdr-datatypes.h

package info (click to toggle)
libdap 3.20.11-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 24,568 kB
  • sloc: cpp: 50,809; sh: 41,536; xml: 23,511; ansic: 20,030; yacc: 2,508; exp: 1,544; makefile: 990; lex: 309; perl: 52; fortran: 8
file content (31 lines) | stat: -rw-r--r-- 659 bytes parent folder | download | duplicates (5)
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
/* xdr-datatypes-config.h.  Generated from xdr-datatypes-config.h.in by configure.  */

/*
  Determine at compile-time the sizes of various XDR datatypes. This uses
  symbols defined by configure (See configure.in). pcw 08/13/07
*/

#ifndef __XDR_DATATYPES__
#define __XDR_DATATYPES__

#ifdef WIN32
#include <rpc.h>
#include <winsock2.h>
#include <xdr.h>
#else
#include <rpc/types.h>
#include <netinet/in.h>
#include <rpc/xdr.h>
#endif


#define XDR_INT32 xdr_int32_t
#define XDR_UINT32 xdr_u_int32_t

#define XDR_INT16 xdr_int16_t
#define XDR_UINT16 xdr_u_int16_t

#define XDR_FLOAT64 xdr_double
#define XDR_FLOAT32 xdr_float

#endif /* __XDR_DATATYPES__ */