summaryrefslogtreecommitdiffstats
path: root/src/H5win32defs.h
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2012-03-28 22:00:41 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2012-03-28 22:00:41 (GMT)
commitd4ab4456d021dbe21cec5265d77047949f61eda7 (patch)
tree74d8aeba519a3615aad9b6467c5340249eab7950 /src/H5win32defs.h
parent84487458917a55d39171cb4607178e4ba25a208d (diff)
downloadhdf5-d4ab4456d021dbe21cec5265d77047949f61eda7.zip
hdf5-d4ab4456d021dbe21cec5265d77047949f61eda7.tar.gz
hdf5-d4ab4456d021dbe21cec5265d77047949f61eda7.tar.bz2
[svn-r22175] MinGW compile issues fixed.
Reviewed Tested: windows (big test using stdio ony fails - this will be filed for further investigation)
Diffstat (limited to 'src/H5win32defs.h')
-rw-r--r--src/H5win32defs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/H5win32defs.h b/src/H5win32defs.h
index 5f886d1..e9b87625 100644
--- a/src/H5win32defs.h
+++ b/src/H5win32defs.h
@@ -33,9 +33,7 @@ typedef __int64 h5_stat_size_t;
#define HDdup(F) _dup(F)
#define HDfdopen(N,S) _fdopen(N,S)
#define HDfileno(F) _fileno(F)
-#define HDfseek(F,O,W) _fseeki64(F,O,W)
#define HDfstat(F,B) _fstati64(F,B)
-#define HDftruncate(F,L) _chsize_s(F,L)
#define HDisatty(F) _isatty(F)
#define HDgetcwd(S,Z) _getcwd(S,Z)
#define HDgetdcwd(D,S,Z) _getdcwd(D,S,Z)
@@ -91,4 +89,8 @@ struct timezone {
* type cannot be cast as a ulong like other systems. */
#define HDpthread_self_ulong() ((unsigned long)GetCurrentThreadId())
+#ifndef H5_HAVE_MINGW
+#define HDftruncate(F,L) _chsize_s(F,L)
+#define HDfseek(F,O,W) _fseeki64(F,O,W)
+#endif
#endif /* H5_HAVE_WIN32_API */