1 2 /* 3 Determine at compile-time the sizes of various datatypes. This uses symbols 4 defined by configure (See configure.in). 5 jhrg 10/24/94 6 7 This header is included by all of the DODS DAP library header files which 8 make use of the dods_* typedefs. C or C++ files can either include 9 config_dap.h, use their own configure script which defines SIZEOF_LONG, 10 _INT, _CHAR and _DOUBLE or set these preprocessor symbols themselves in a 11 Makefile, etc. 12 13 This used to be part of the config_dap.h header, but including that in the 14 DAP library headers introduced problems when the DAP was used in conjunction 15 with other libraries. 8/1/2000 jhrg 16 */ 17 18 #ifndef __XDR_DATATYPES__ 19 #define __XDR_DATATYPES__ 20 21 #ifdef WIN32 22 #include <rpc.h> 23 #include <winsock2.h> 24 #include <xdr.h> 25 #else 26 #include <rpc/types.h> 27 #include <netinet/in.h> 28 #include <rpc/xdr.h> 29 #endif 30 31 #ifndef XDR_INT32 32 #define XDR_INT32 xdr_int32_t 33 #endif 34 35 #ifndef XDR_UINT32 36 #define XDR_UINT32 xdr_uint32_t 37 #endif 38 39 #ifndef XDR_INT16 40 #define XDR_INT16 xdr_int16_t 41 #endif 42 43 #ifndef XDR_UINT16 44 #define XDR_UINT16 xdr_uint16_t 45 #endif 46 47 #ifndef XDR_FLOAT64 48 #define XDR_FLOAT64 xdr_double 49 #endif 50 51 #ifndef XDR_FLOAT32 52 #define XDR_FLOAT32 xdr_float 53 #endif 54 55 #endif /* __XDR_DATATYPES__ */ 56 57