summaryrefslogtreecommitdiffstats
path: root/src/H5PL.c
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2015-02-02 06:46:40 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2015-02-02 06:46:40 (GMT)
commitcd1d1d41df4d54f5e1121550c7f7eb7f83bcfab9 (patch)
tree9f39886657d25fd8bf621b8e1a769ad64dfb7534 /src/H5PL.c
parent45eefdbdea5aec34f67dabec64a5a1005483c095 (diff)
parent67f41bf9f80499f1e1f6dc8e27a599ba0a4b9ef3 (diff)
downloadhdf5-cd1d1d41df4d54f5e1121550c7f7eb7f83bcfab9.zip
hdf5-cd1d1d41df4d54f5e1121550c7f7eb7f83bcfab9.tar.gz
hdf5-cd1d1d41df4d54f5e1121550c7f7eb7f83bcfab9.tar.bz2
[svn-r26096] Merged r26024-26095 from trunk.
Tested on: jam with Fortran and C++
Diffstat (limited to 'src/H5PL.c')
-rw-r--r--src/H5PL.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5PL.c b/src/H5PL.c
index 21bc0f2..738db90 100644
--- a/src/H5PL.c
+++ b/src/H5PL.c
@@ -405,8 +405,14 @@ H5PL__find(H5PL_type_t plugin_type, int type_id, char *dir, const void **info)
/* The library we are looking for should be called libxxx.so... on Unix
* or libxxx.xxx.dylib on Mac.
*/
+#ifndef __CYGWIN__
if(!HDstrncmp(dp->d_name, "lib", (size_t)3) &&
(HDstrstr(dp->d_name, ".so") || HDstrstr(dp->d_name, ".dylib"))) {
+#else
+ if(!HDstrncmp(dp->d_name, "cyg", (size_t)3) &&
+ HDstrstr(dp->d_name, ".dll") ) {
+
+#endif
h5_stat_t my_stat;
size_t pathname_len;
htri_t found_in_dir;