blob: 2ab12a120dcbc31ee84f05123060fe7d9448a07b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* Copyright by The HDF Group. *
* Copyright by the Board of Trustees of the University of Illinois. *
* All rights reserved. *
* *
* This file is part of HDF5. The full HDF5 copyright notice, including *
* terms governing use, modification, and redistribution, is contained in *
* the files COPYING and Copyright.html. COPYING can be found at the root *
* of the source code distribution tree; Copyright.html can be found at the *
* root level of an installed copy of the electronic HDF5 document set and *
* is linked from the top-level documents page. It can also be found at *
* http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have *
* access to either file, you may request a copy from help@hdfgroup.org. *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* H5pubconf.h is adapted from UNIX platform and manually maintained on the windows platform. */
#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_LONG 4
#define H5_SIZEOF_LONG_DOUBLE 8
#define H5_SIZEOF_OFF_T 4
#define H5_SIZEOF_SHORT 2
#ifndef _WIN64
#define H5_SIZEOF_SIZE_T 4
#else
#define H5_SIZEOF_SIZE_T 8
#endif
/*#if defined __INTEL_COMPILER
#define H5_SIZEOF_LONG_DOUBLE 12
#else*/
/*#endif*/
/*#define H5_HAVE_TM_ZONE 1 windows do not use this constant.*/
#define H5_MALLOC_WORKS 1
#define H5_HAVE_TIMEZONE 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_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
#define H5_HAVE_STATI64 1
/* These 64-bit functions are only supported in .NET Framework 2.0 or later */
#if _MSC_VER >= 1400
#define H5_HAVE_FSEEKI64 1
#define H5_HAVE_CHSIZE_S 1
#define H5_HAVE_FTELLI64 1
#endif /* _MSC_VER >= 1400 */
/* comment the following line out if the memory buffers being written to
disk should not be cleared before writing. */
#define H5_CLEAR_MEMORY 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
/* change the following line if you would like to change the default file driver */
#define H5_DEFAULT_VFD H5FD_WINDOWS
/* comment the following line out if you don't want to build the windows file
driver */
#define H5_HAVE_WINDOWS 1
#ifdef H5_HAVE_WINDOWS
/* uncomment the following line if you would like to use the buffered stdio
functions in the Windows file driver. */
// #define WINDOWS_USE_STDIO 1
/* this value controls the maximum data written in one write call in the
* Windows file driver. Safe values are between 1 <= IO_BUF_SIZE <= 2GB-1.
* The default is 1GB. */
#define WINDOWS_MAX_BUF 1073741824
#endif /* H5_HAVE_WINDOWS */
/* This definition is used for alterative handelling and testing of Windows
paths. This shouldn't need to be commented or removed. */
#define H5_HAVE_WINDOW_PATH 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
#define H5_HW_FP_TO_LLONG_NOT_WORKS 1
#if defined __INTEL_COMPILER
#undef H5_LLONG_TO_FP_CAST_WORKS
#else
/*#define H5_LLONG_TO_FP_CAST_WORKS*/
#endif
#else
#undef H5_HAVE_FUNCTION
#undef H5_ULLONG_TO_FP_CAST_WORKS
#define H5_LLONG_TO_FP_CAST_WORKS
#endif
#define H5_FC_FUNC_(name, NAME) NAME
#define FC_FUNC_(name, NAME) NAME
#define H5_HAVE_TMPFILE 1
/*Users want to build and test hdf5 library with thread safe enabled,
Make the following block active
*/
/* (Remove the comment signs to enable thread safe on windows)
#if defined _DLL
#define H5_HAVE_THREADSAFE 1
#define H5_HAVE_SYSTEM_SCOPE_THREADS 1
#if defined TTSAFE_H
#define sleep Sleep
#endif
#endif
*/
/* Data accuracy is prefered to speed during data conversions */
#define H5_WANT_DATA_ACCURACY 1
/* Check exception handling functions during data conversions */
#define H5_WANT_DCONV_EXCEPTION 1
/* uncomment the following line if we want parallel HDF5 support */
/* #define H5_HAVE_PARALLEL */
/* uncomment the following line if you need the library to perform "strict"
memory operations, which is useful when debugging with a memory checking
tool like Purify, etc. */
/* #define H5_USING_MEMCHECKER 1 */
|