summaryrefslogtreecommitdiffstats
path: root/perform
diff options
context:
space:
mode:
authorXuan Bai <xuanbai@hdfgroup.org>2005-01-20 20:46:33 (GMT)
committerXuan Bai <xuanbai@hdfgroup.org>2005-01-20 20:46:33 (GMT)
commitea2dd2a44af692cb113d85bd661d3be9aedf4ea5 (patch)
tree43c1a51d894d88405bf2fc201e72d7a27390b0e9 /perform
parent2ef27d6564dc7d8e3b72d8f34b08d18935083662 (diff)
downloadhdf5-ea2dd2a44af692cb113d85bd661d3be9aedf4ea5.zip
hdf5-ea2dd2a44af692cb113d85bd661d3be9aedf4ea5.tar.gz
hdf5-ea2dd2a44af692cb113d85bd661d3be9aedf4ea5.tar.bz2
[svn-r9844] Purpose:
Bug fix. Description: Function _flushall() is not available on Cygwin. So a Cgywin macro is added so the compiler will not call this function when building HDF5 on Cygwin. Solution: Change the following codes: #ifdef H5_HAVE_SYSTEM #ifdefined WIN32 _flushall(); #else HDsystem ("sync"); HDsystem ("df >/dev/null"); #endif to: #ifdef H5_HAVE_SYSTEM #if defined(WIN32) && ! defined(__CYGWIN__) _flushall(); #else HDsystem ("sync"); HDsystem ("df >/dev/null"); #endif Platforms tested: Cygwin 1.5.11, VC 6.0 on XP. Linux 2.4 (heping) Solaris 2.7 (arabica) Misc. update:
Diffstat (limited to 'perform')
-rw-r--r--perform/iopipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perform/iopipe.c b/perform/iopipe.c
index 88b0fe6..200ee7e 100644
--- a/perform/iopipe.c
+++ b/perform/iopipe.c
@@ -147,7 +147,7 @@ static void
synchronize (void)
{
#ifdef H5_HAVE_SYSTEM
-#ifdef WIN32
+#if defined(WIN32) && ! defined(__CYGWIN__)
_flushall();
#else
HDsystem ("sync");