From f7577add84805df952bc35b138718f7eeb296aaa Mon Sep 17 00:00:00 2001 From: Xuan Bai Date: Thu, 20 Jan 2005 15:55:05 -0500 Subject: [svn-r9848] 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: --- perform/iopipe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perform/iopipe.c b/perform/iopipe.c index 704637e..200ee7e 100644 --- a/perform/iopipe.c +++ b/perform/iopipe.c @@ -147,8 +147,8 @@ static void synchronize (void) { #ifdef H5_HAVE_SYSTEM -#ifdef WIN32 - flushall(); +#if defined(WIN32) && ! defined(__CYGWIN__) + _flushall(); #else HDsystem ("sync"); HDsystem ("df >/dev/null"); -- cgit v0.12