hdf5stream_config.h

00001 #ifndef HDF5STREAM_CONFIGURATION_VISH_H
00002 #define HDF5STREAM_CONFIGURATION_VISH_H
00003 
00004 /*
00005   this adds defines needed by the stream driver in addition
00006   to the defines specified in hdf5/H5pubconf.h
00007 
00008   can and will be consolidated into the Makefile
00009   also, only provisionally and not fully tested
00010 
00011   GR, June 2009
00012 */
00013 
00014 #define H5_HAVE_STREAM 1
00015 
00016 #ifdef  linux
00017 // linux i686 only for now
00018 #define H5_HAVE_NETINET_IN_H 1
00019 #define H5_HAVE_NETINET_TCP_H 1
00020 #define H5_HAVE_SOCKLEN_T 1
00021 #define H5FD_STREAM_HAVE_UNIX_SOCKETS 1
00022 #include <asm/ioctls.h>
00023 #include <sys/socket.h>
00024 #endif
00025 
00026 #ifdef  _WIN32
00027 #include <windows.h>
00028 #include <winsock2.h>
00029 
00030 #ifdef  __MINGW__
00031 // win32, msys
00032 
00033 #error nnn
00034 #endif
00035 #endif
00036 
00037 #define TRUE 1
00038 #define FALSE 0
00039 
00040 //#ifdef H5_HAVE_STDIO_H
00041 #include <stdio.h>
00042 //#endif
00043 //#ifdef H5_HAVE_UNISTD_H
00044 #include <unistd.h>
00045 //#endif
00046 #include <fcntl.h>
00047 
00048 #include <signal.h>
00049 //#include <asm-generic/errno.h>
00050  #include <sys/types.h> 
00051 #include <assert.h>
00052 #   include <errno.h>
00053 
00054 #define SUCCEED               0
00055 #define UNUSED 
00056 #define HDmemset(X,C,Z)           memset(X,C,Z) 
00057 
00058 #ifndef HDmemcpy
00059    #define HDmemcpy(X,Y,Z)           memcpy((char*)(X),(const char*)(Y),Z)
00060 #endif /* HDmemcpy */
00061 
00062 
00063 #ifndef HDstrncpy
00064 #define HDstrncpy(X,Y,Z) strncpy(X,Y,Z)
00065 
00066 #endif /* HDstrncpy */
00067 
00068 #endif // HDF5STREAM_CONFIGURATION_VISH_H
00069