From f18ae07925a760001bc59cd9fe0d89fa04860df1 Mon Sep 17 00:00:00 2001 From: Xuan Bai Date: Wed, 18 Aug 2004 17:06:02 -0500 Subject: [svn-r9112] Purpose: Update. Description: Make some minor change so that tellub.c is compatible with Windows. Solution: 1. unistd.h is not available in windows system. Add a macro for this header file as: #ifdef H5_HAVE_UNISTD_H #include #endif 2. Change open, read, write, lseek functions to HDopen, HDread, HDwrite, and HDlseek, as these HD functions are more comtatible with Windows system. 3. add #include H5private.h 4. remove #include Platforms tested: Windows 2000 Windows XP eirene (Note: I talked with Bob and Kent about these changes before check-in) Misc. update: --- tools/h5jam/tellub.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/h5jam/tellub.c b/tools/h5jam/tellub.c index 96d332c..e018eda 100644 --- a/tools/h5jam/tellub.c +++ b/tools/h5jam/tellub.c @@ -13,10 +13,13 @@ * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ #include -#include + +#ifdef H5_HAVE_UNISTD_H #include +#endif #include "hdf5.h" +#include "H5private.h" #include "h5tools_utils.h" #define TRUE 1 -- cgit v0.12