summaryrefslogtreecommitdiffstats
path: root/src/H5FDstdio.c
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/H5FDstdio.c
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/H5FDstdio.c')
-rw-r--r--src/H5FDstdio.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5FDstdio.c b/src/H5FDstdio.c
index b67e01e..49e1957 100644
--- a/src/H5FDstdio.c
+++ b/src/H5FDstdio.c
@@ -44,6 +44,10 @@
#endif
#ifdef H5_HAVE_WIN32_API
+/* The following two defines must be before any windows headers are included */
+#define WIN32_LEAN_AND_MEAN /* Exclude rarely-used stuff from Windows headers */
+#define NOGDI /* Exclude Graphic Display Interface macros */
+
#include <windows.h>
#include <io.h>
@@ -115,10 +119,12 @@ typedef struct H5FD_stdio_t {
/* Use similar structure as in H5private.h by defining Windows stuff first. */
#ifdef H5_HAVE_WIN32_API
+ #ifndef H5_HAVE_MINGW
# define file_fseek _fseeki64
# define file_offset_t __int64
# define file_ftruncate _chsize_s /* Supported in VS 2005 or newer */
# define file_ftell _ftelli64
+ #endif
#endif
/* Use file_xxx to indicate these are local macros, avoiding confusing