summaryrefslogtreecommitdiffstats
path: root/src/H5PL.c
diff options
context:
space:
mode:
authorMohamad Chaarawi <chaarawi@hdfgroup.org>2015-02-16 16:48:34 (GMT)
committerMohamad Chaarawi <chaarawi@hdfgroup.org>2015-02-16 16:48:34 (GMT)
commit820b4dc39136072bccad1455fc0232ec9e710d58 (patch)
treefeaad5d3945808de30f58b19ff1c6fe23efa198d /src/H5PL.c
parent147fa90afae2c3a19501e35dfeb15101bf964b60 (diff)
parent74fbb9e32794c315bf14a7c29c42c25a6ca2f5f3 (diff)
downloadhdf5-820b4dc39136072bccad1455fc0232ec9e710d58.zip
hdf5-820b4dc39136072bccad1455fc0232ec9e710d58.tar.gz
hdf5-820b4dc39136072bccad1455fc0232ec9e710d58.tar.bz2
[svn-r26185] merge from trunk.
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 d9ca158..c1874ee 100644
--- a/src/H5PL.c
+++ b/src/H5PL.c
@@ -422,8 +422,14 @@ H5PL__find(H5PL_type_t plugin_type, int type_id, const char *plugin_name, char *
/* 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;