summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2004-10-27 22:41:57 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2004-10-27 22:41:57 (GMT)
commitbabfbc2f9df2233f61e12cc3c153627e319f0e8f (patch)
treee155c153e3e073fa13b46706f1078d5ba90875af /src/H5private.h
parent84745471a2f89660d8b0d48572a31982d12e05fa (diff)
downloadhdf5-babfbc2f9df2233f61e12cc3c153627e319f0e8f.zip
hdf5-babfbc2f9df2233f61e12cc3c153627e319f0e8f.tar.gz
hdf5-babfbc2f9df2233f61e12cc3c153627e319f0e8f.tar.bz2
[svn-r9474] Purpose:
Updating H5api_adpt.h to help the implementation of Fortran DLL on windows. Description: 1. More functions need to be added prefix macro for exporting and importing fortran DLL on Windows. 2. unlink was _unlink on windows and use HDunlink to specify this. Solution: Platforms tested: linux 2.4(h5committest not finished yet, but should work since the change is minor and it is passed with pgi compiler) Misc. update:
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index f09ae7d..86b975c 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -840,7 +840,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)
+#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)