diff --git a/.gitattributes b/.gitattributes index fdd49e2..36d7e52 100644 --- a/.gitattributes +++ b/.gitattributes @@ -49,6 +49,7 @@ src/h5/attribs.c -text src/h5/attribs.h -text src/h5/errorhandling.c -text src/h5/errorhandling.h -text +src/h5/h5_types.h -text src/h5/openclose.c -text src/h5/openclose.h -text src/h5/readwrite.c -text diff --git a/src/h5/h5_types.h b/src/h5/h5_types.h new file mode 100644 index 0000000..8cdfc40 --- /dev/null +++ b/src/h5/h5_types.h @@ -0,0 +1,31 @@ +#ifndef __H5_TYPES_H +#define __H5_TYPES_H + +#ifdef WIN32 +typedef __int64 int64_t; +#endif /* WIN32 */ + +typedef int64_t h5_int64_t; +typedef h5_int64_t h5_int_t; +typedef h5_int64_t h5part_int64_t; +typedef int32_t h5_id_t; +typedef int32_t h5_size_t; /* size in number of elements */ + +typedef double h5_float64_t; +typedef h5_float64_t h5_float_t; +typedef h5_float64_t h5part_float64_t; + +typedef h5_int64_t (*h5_error_handler)( const char*, const h5_int64_t, const char*,...) +#ifdef __GNUC__ +__attribute__ ((format (printf, 3, 4))) +#endif + ; + +typedef h5_error_handler h5part_error_handler; + +#ifndef PARALLEL_IO +typedef unsigned long MPI_Comm; +#endif + + +#endif