summaryrefslogtreecommitdiffstats
path: root/windows/src
diff options
context:
space:
mode:
authorFang Guo <fangguo@ncsa.uiuc.edu>2005-03-22 18:38:59 (GMT)
committerFang Guo <fangguo@ncsa.uiuc.edu>2005-03-22 18:38:59 (GMT)
commit4cb01f36d0626eb7f6ce158ab76a423d0ab4aebe (patch)
tree7a7c616f36011144936881497bdc9c10032d258c /windows/src
parentfcbaf2665fcd8a2179978dd57144e55473b70131 (diff)
downloadhdf5-4cb01f36d0626eb7f6ce158ab76a423d0ab4aebe.zip
hdf5-4cb01f36d0626eb7f6ce158ab76a423d0ab4aebe.tar.gz
hdf5-4cb01f36d0626eb7f6ce158ab76a423d0ab4aebe.tar.bz2
[svn-r10283] Purpose:
For windows support, Remove all.zip from HDF5. Description: Add H5pubconf.h Solution: Platforms tested: MSVS 6.0 on windows xp. Misc. update:
Diffstat (limited to 'windows/src')
-rwxr-xr-xwindows/src/H5pubconf.h123
1 files changed, 123 insertions, 0 deletions
diff --git a/windows/src/H5pubconf.h b/windows/src/H5pubconf.h
new file mode 100755
index 0000000..4c4ce4e
--- /dev/null
+++ b/windows/src/H5pubconf.h
@@ -0,0 +1,123 @@
+/* H5pubconf.h is adapted from UNIX platform and manually maintained on the windows platform. */
+
+/*#define H5_HAVE_TM_ZONE 1 windows do not use this constant.*/
+#define H5_MALLOC_WORKS 1
+
+/* code warrior returns 0 in malloc(0) */
+#if defined(__MWERKS__)
+#undef H5_MALLOC_WORKS
+#endif
+
+/*
+code warrior v.8 does not allow shared writing by default;
+the feature can be enabled by defining
+_MSL_ALLOW_SHARED_WRITING to 1
+in the file file_io.win32.c and including it on the projects
+*/
+#if defined(__MWERKS__)
+#define H5_NO_SHARED_WRITING
+#endif
+
+
+#define H5_STDC_HEADERS 1
+#define H5_HAVE_ATTRIBUTE 1
+#undef H5_HAVE_ATTRIBUTE
+#define H5_HAVE_LARGE_HSIZET 1
+#ifdef __MWERKS__
+#define H5_PRINTF_LL_WIDTH "ll"
+#else
+#define H5_PRINTF_LL_WIDTH "I64"
+#endif
+#define H5_HAVE___int64
+#define H5_SIZEOF___INT64 8
+#define H5_SIZEOF_CHAR 1
+#define H5_SIZEOF_DOUBLE 8
+#define H5_SIZEOF_FLOAT 4
+#define H5_SIZEOF_INT 4
+#define H5_SIZEOF_INT16_T 0
+#define H5_SIZEOF_INT32_T 0
+#define H5_SIZEOF_INT64_T 0
+#define H5_SIZEOF_INT8_T 0
+#define H5_SIZEOF_INT_FAST16_T 0
+#define H5_SIZEOF_INT_FAST32_T 0
+#define H5_SIZEOF_INT_FAST64_T 0
+#define H5_SIZEOF_INT_FAST8_T 0
+#define H5_SIZEOF_INT_LEAST16_T 0
+#define H5_SIZEOF_INT_LEAST32_T 0
+#define H5_SIZEOF_INT_LEAST64_T 0
+#define H5_SIZEOF_INT_LEAST8_T 0
+#define H5_SIZEOF_LONG 4
+#define H5_SIZEOF_LONG_LONG 0
+#define H5_SIZEOF_LONG_DOUBLE 8
+#define H5_SIZEOF_OFF_T 4
+#define H5_SIZEOF_SHORT 2
+#define H5_SIZEOF_SIZE_T 4
+#define H5_SIZEOF_SSIZE_T 0
+#define H5_SIZEOF_UINT16_T 0
+#define H5_SIZEOF_UINT32_T 0
+#define H5_SIZEOF_UINT64_T 0
+#define H5_SIZEOF_UINT8_T 0
+#define H5_SIZEOF_UINT_FAST16_T 0
+#define H5_SIZEOF_UINT_FAST32_T 0
+#define H5_SIZEOF_UINT_FAST64_T 0
+#define H5_SIZEOF_UINT_FAST8_T 0
+#define H5_SIZEOF_UINT_LEAST16_T 0
+#define H5_SIZEOF_UINT_LEAST32_T 0
+#define H5_SIZEOF_UINT_LEAST64_T 0
+#define H5_SIZEOF_UINT_LEAST8_T 0
+#define H5_HAVE_DIFFTIME 1
+#define H5_HAVE_FORK 1
+#define H5_HAVE_GETHOSTNAME 1
+#define H5_HAVE_IOCTL 1
+#define H5_HAVE_LONGJMP 1
+#define H5_HAVE_SIGACTION 1
+#define H5_HAVE_SIGNAL 1
+#define H5_HAVE__SNPRINTF 1
+#define H5_HAVE_STRDUP 1
+#define H5_HAVE_SYSTEM 1
+#define H5_HAVE__VSNPRINTF 1
+#define H5_HAVE_IO_H 1
+#define H5_HAVE_SETJMP_H 1
+#define H5_HAVE_STDDEF_H 1
+#define H5_HAVE_SYS_STAT_H 1
+#define H5_HAVE_SYS_TIMEB 1
+#define H5_HAVE_SYS_TYPES_H 1
+#define H5_HAVE_WINSOCK_H 1
+
+/* comment the following line out if you are not using check sum filter*/
+#define H5_HAVE_FILTER_FLETCHER32 1
+
+/* comment the following line out if you are not using shuffle filter*/
+#define H5_HAVE_FILTER_SHUFFLE 1
+
+/* comment the following line out if you are not using N-bit filter*/
+#define H5_HAVE_FILTER_NBIT 1
+
+/* comment the following line out if you are not using N-bit filter*/
+#define H5_HAVE_FILTER_SCALEOFFSET 1
+
+/* comment the following two lines out if you are not using deflate(gzip) filter*/
+#define H5_HAVE_FILTER_DEFLATE 1
+#define H5_HAVE_ZLIB_H 1
+
+/* comment the following two lines out if you are not using szip filter*/
+#define H5_HAVE_SZLIB_H 1
+#define H5_HAVE_FILTER_SZIP 1
+
+/* comment the following line out if you are not using N-bit filter*/
+/* #define H5_HAVE_FILTER_NBIT 1*/
+
+#if defined(__MWERKS__) || defined(__cplusplus)
+#define H5_inline inline
+#else
+#define H5_inline __inline
+#endif
+
+#if _MSC_VER >= 1300 /* .Net supports FUNCTION */
+#define H5_HAVE_FUNCTION 1
+#define H5_ULLONG_TO_FP_CAST_WORKS 1
+#else
+#undef H5_HAVE_FUNCTION
+#undef H5_ULLONG_TO_FP_CAST_WORKS
+
+#endif