summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2004-10-27 22:50:15 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2004-10-27 22:50:15 (GMT)
commitffb40e10d41a1cbb535eed78134671e820e650cd (patch)
treeaf04927bc7fecf9cf5059058d6af3a56f659efb5 /tools/lib
parenta457cd03e7f4b4538549d740903fd5b78a5eed6e (diff)
downloadhdf5-ffb40e10d41a1cbb535eed78134671e820e650cd.zip
hdf5-ffb40e10d41a1cbb535eed78134671e820e650cd.tar.gz
hdf5-ffb40e10d41a1cbb535eed78134671e820e650cd.tar.bz2
[svn-r9476] Purpose:
Make talign work on windows. Description: msvc++ uses _unlink instead of unlink. Solution: change the code to use HDunlink and include H5private.h(Not good?). Platforms tested: windows, Linux 2.4 Misc. update:
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/talign.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/lib/talign.c b/tools/lib/talign.c
index bb9f96e..61dc886 100644
--- a/tools/lib/talign.c
+++ b/tools/lib/talign.c
@@ -4,9 +4,10 @@
*/
#include <string.h>
#include <stdlib.h>
-#include <unistd.h> /* Required for unlink() */
+/*#include <unistd.h> *//* Required for unlink() */
#include "hdf5.h"
+#include "H5private.h"
#include "h5tools.h"
const char *fname = "talign.h5";
@@ -43,7 +44,7 @@ int main(void)
printf("%-70s", "Testing alignment in compound datatypes");
strcpy(string5, "Hi!");
- unlink(fname);
+ HDunlink(fname);
fil = H5Fcreate(fname, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);
if (fil < 0) {