]> git.saurik.com Git - wxWidgets.git/commitdiff
don't define HAVE_FSYNC if it's already defined (as it can happen when using Cygwin...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 13 Feb 2008 22:39:32 +0000 (22:39 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 13 Feb 2008 22:39:32 +0000 (22:39 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/filefn.h

index 6ce76ebbc62014c7ccabbb301fa85838fbd84e6e..a44970676f41ddb21b413fd331b614ff3ec982df 100644 (file)
@@ -247,12 +247,15 @@ enum wxFileKind
     #endif // wxHAS_HUGE_FILES/!wxHAS_HUGE_FILES
 
     #ifndef __WATCOMC__
-        #if !defined(__BORLANDC__) || (__BORLANDC__ > 0x540)
-           // NB: this one is not POSIX and always has the underscore
-           #define   wxFsync      _commit
-
-           #define HAVE_FSYNC
-       #endif // BORLANDC
+         #if !defined(__BORLANDC__) || (__BORLANDC__ > 0x540)
+             // NB: this one is not POSIX and always has the underscore
+             #define   wxFsync      _commit
+
+             // could be already defined by configure (Cygwin)
+             #ifndef HAVE_FSYNC
+                 #define HAVE_FSYNC
+             #endif
+        #endif // BORLANDC
     #endif
 
     #define   wxEof        wxPOSIX_IDENT(eof)