[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:
This commit is contained in:
MuQun Yang 2004-10-27 17:50:15 -05:00
parent a457cd03e7
commit ffb40e10d4

View File

@ -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) {