summaryrefslogtreecommitdiffstats
path: root/tools/h5jam/tellub.c
diff options
context:
space:
mode:
authorXuan Bai <xuanbai@hdfgroup.org>2004-08-18 22:06:02 (GMT)
committerXuan Bai <xuanbai@hdfgroup.org>2004-08-18 22:06:02 (GMT)
commitf18ae07925a760001bc59cd9fe0d89fa04860df1 (patch)
tree0da41dd9ba89e3bee3207d23c03251f840647bd7 /tools/h5jam/tellub.c
parent74f96681ceca04d64a98526a2e91ef0493ee76b1 (diff)
downloadhdf5-f18ae07925a760001bc59cd9fe0d89fa04860df1.zip
hdf5-f18ae07925a760001bc59cd9fe0d89fa04860df1.tar.gz
hdf5-f18ae07925a760001bc59cd9fe0d89fa04860df1.tar.bz2
[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 <unistd.h> #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 <stdlib.h> Platforms tested: Windows 2000 Windows XP eirene (Note: I talked with Bob and Kent about these changes before check-in) Misc. update:
Diffstat (limited to 'tools/h5jam/tellub.c')
-rw-r--r--tools/h5jam/tellub.c5
1 files changed, 4 insertions, 1 deletions
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 <stdio.h>
-#include <stdlib.h>
+
+#ifdef H5_HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include "hdf5.h"
+#include "H5private.h"
#include "h5tools_utils.h"
#define TRUE 1