From ffb40e10d41a1cbb535eed78134671e820e650cd Mon Sep 17 00:00:00 2001 From: MuQun Yang Date: Wed, 27 Oct 2004 17:50:15 -0500 Subject: [PATCH] [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: --- tools/lib/talign.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/lib/talign.c b/tools/lib/talign.c index bb9f96e959..61dc8864ee 100644 --- a/tools/lib/talign.c +++ b/tools/lib/talign.c @@ -4,9 +4,10 @@ */ #include #include -#include /* Required for unlink() */ +/*#include *//* 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) {