diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2004-12-14 15:02:03 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2004-12-14 15:02:03 (GMT) |
commit | cdcf048decfbb738e52ad5a448085445ce53341f (patch) | |
tree | 608b203f1c042300b42d70bf63082be5d31832a0 | |
parent | 61ae6864a345f7b41762771d5525d437cd828285 (diff) | |
download | hdf5-cdcf048decfbb738e52ad5a448085445ce53341f.zip hdf5-cdcf048decfbb738e52ad5a448085445ce53341f.tar.gz hdf5-cdcf048decfbb738e52ad5a448085445ce53341f.tar.bz2 |
[svn-r9667] Purpose:
windows support
Description:
On windows function_unlink is used rather than unlink.
Solution:
Use Win32 to separate these.
Platforms tested:
Linux 2.4(too minor to use h5committest)
Misc. update:
-rw-r--r-- | src/H5private.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/H5private.h b/src/H5private.h index 3a75fb1..d8f7f15 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -843,7 +843,11 @@ H5_DLL int64_t HDstrtoll (const char *s, const char **rest, int base); #define HDumask(N) umask(N) #define HDuname(S) uname(S) #define HDungetc(C,F) ungetc(C,F) -#define HDunlink(S) unlink(S) +#ifdef WIN32 +#define HDunlink(S) _unlink(S) +#else +#define HDunlink(S) unlink(S) +#endif #define HDutime(S,T) utime(S,T) #define HDva_arg(A,T) va_arg(A,T) #define HDva_end(A) va_end(A) |