From 61b948ad23930cc8358cf2d3feb3ebe3581abf8c Mon Sep 17 00:00:00 2001 From: MuQun Yang Date: Thu, 21 Jun 2001 15:04:36 -0500 Subject: [svn-r4046] Purpose: bug fix for windows MVS Description: adding various windows macros to make it work on windows platform Solution: see above Platforms tested: test on windows 2000, confirmed on linux. --- src/H5FDstdio.c | 7 +++++++ src/H5detect.c | 3 +++ src/H5private.h | 1 + 3 files changed, 11 insertions(+) diff --git a/src/H5FDstdio.c b/src/H5FDstdio.c index b4da5ce..c852208 100644 --- a/src/H5FDstdio.c +++ b/src/H5FDstdio.c @@ -20,6 +20,13 @@ #include #endif +#ifdef WIN32 +#include +#include +#endif /*kent yang 6/21/2001, must be added for defination of open,write.... + also the defination of longlong is valid, will investigate this to + make sure int64 can replace longlong. Otherwise, keep windows.h*/ + #ifdef MAX #undef MAX #endif /* MAX */ diff --git a/src/H5detect.c b/src/H5detect.c index e3d51be..006b248 100644 --- a/src/H5detect.c +++ b/src/H5detect.c @@ -30,6 +30,9 @@ static const char *FileHeader = "\n\ *------------------------------------------------------------------------- */ #undef NDEBUG +#ifdef WIN32 +#include "winsock2.h" +#endif /*kent yang 6/21/2001, make sure to put this before H5private.h*/ #include "H5private.h" #define MAXDETECT 64 diff --git a/src/H5private.h b/src/H5private.h index 12bca56..93fbb1d 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -148,6 +148,7 @@ #include #include +#include /* kent yang 6/18/2001*/ /* H5_inline */ -- cgit v0.12