libdap++ Updated for version 3.8.2
|
00001 00002 /* 00003 Determine at compile-time the sizes of various datatypes. This uses symbols 00004 defined by configure (See configure.in). 00005 jhrg 10/24/94 00006 00007 This header is included by all of the DODS DAP library header files which 00008 make use of the dods_* typedefs. C or C++ files can either include 00009 config_dap.h, use their own configure script which defines SIZEOF_LONG, 00010 _INT, _CHAR and _DOUBLE or set these preprocessor symbols themselves in a 00011 Makefile, etc. 00012 00013 This used to be part of the config_dap.h header, but including that in the 00014 DAP library headers introduced problems when the DAP was used in conjunction 00015 with other libraries. 8/1/2000 jhrg 00016 */ 00017 00018 #ifndef __XDR_DATATYPES__ 00019 #define __XDR_DATATYPES__ 00020 00021 #ifdef WIN32 00022 #include <rpc.h> 00023 #include <winsock2.h> 00024 #include <xdr.h> 00025 #else 00026 #include <rpc/types.h> 00027 #include <netinet/in.h> 00028 #include <rpc/xdr.h> 00029 #endif 00030 00031 #ifndef XDR_INT32 00032 #define XDR_INT32 xdr_int32_t 00033 #endif 00034 00035 #ifndef XDR_UINT32 00036 #define XDR_UINT32 xdr_uint32_t 00037 #endif 00038 00039 #ifndef XDR_INT16 00040 #define XDR_INT16 xdr_int16_t 00041 #endif 00042 00043 #ifndef XDR_UINT16 00044 #define XDR_UINT16 xdr_uint16_t 00045 #endif 00046 00047 #ifndef XDR_FLOAT64 00048 #define XDR_FLOAT64 xdr_double 00049 #endif 00050 00051 #ifndef XDR_FLOAT32 00052 #define XDR_FLOAT32 xdr_float 00053 #endif 00054 00055 #endif /* __XDR_DATATYPES__ */ 00056