summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2004-12-14 15:02:03 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2004-12-14 15:02:03 (GMT)
commitcdcf048decfbb738e52ad5a448085445ce53341f (patch)
tree608b203f1c042300b42d70bf63082be5d31832a0 /src/H5private.h
parent61ae6864a345f7b41762771d5525d437cd828285 (diff)
downloadhdf5-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:
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h6
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)