xdr-datatypes-config.h

Go to the documentation of this file.
00001 /* xdr-datatypes-config.h.  Generated by configure.  */
00002 
00003 /*
00004   Determine at compile-time the sizes of various XDR datatypes. This uses symbols
00005   defined by configure (See configure.in).
00006   pcw 08/13/07
00007 */
00008 
00009 #ifndef __XDR_DATATYPES__
00010 #define __XDR_DATATYPES__
00011 
00012 #ifdef WIN32
00013 #include <rpc.h>
00014 #include <winsock2.h>
00015 #include <xdr.h>
00016 #else
00017 #include <rpc/types.h>
00018 #include <netinet/in.h>
00019 #include <rpc/xdr.h>
00020 #endif
00021 
00022 /* The typedefs are done using a preprocessor symbol so that autoconf's
00023    `CONFIG_HEADER' can be used. The configure script will then only modify
00024    the dods-datatypes.h header when its contents change. This saves on
00025    compilation since the header is used by many files in the dap++ library.
00026    The downside is that the typedefs are so ugly... 2/14/2001 jhrg */
00027 
00028 #define XDR_INT32 xdr_int32_t
00029 #define XDR_UINT32 xdr_uint32_t
00030 
00031 #define XDR_INT16 xdr_int16_t
00032 #define XDR_UINT16 xdr_uint16_t
00033 
00034 #define XDR_FLOAT64 xdr_double
00035 #define XDR_FLOAT32 xdr_float
00036 
00037 #endif /* __XDR_DATATYPES__ */

Generated on Wed Jan 2 04:13:17 2008 for libdap++ by  doxygen 1.5.4