mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-01-18 15:15:56 +08:00
[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:
parent
a457cd03e7
commit
ffb40e10d4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user