summaryrefslogtreecommitdiffstats
path: root/qtools/qfile_unix.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2005-04-21 21:10:51 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2005-04-21 21:10:51 (GMT)
commit4a8c2f5c896a1883a0611d972952a68498002ae5 (patch)
tree81218085d3e6e15b1ce6c418734013d48e9deda8 /qtools/qfile_unix.cpp
parent570375c30adbdb66714d465d849b18e0df9dd6e6 (diff)
downloadDoxygen-4a8c2f5c896a1883a0611d972952a68498002ae5.zip
Doxygen-4a8c2f5c896a1883a0611d972952a68498002ae5.tar.gz
Doxygen-4a8c2f5c896a1883a0611d972952a68498002ae5.tar.bz2
Release-1.4.2-20050421
Diffstat (limited to 'qtools/qfile_unix.cpp')
-rw-r--r--qtools/qfile_unix.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/qtools/qfile_unix.cpp b/qtools/qfile_unix.cpp
index 43424b1..6b63d99 100644
--- a/qtools/qfile_unix.cpp
+++ b/qtools/qfile_unix.cpp
@@ -175,7 +175,11 @@ bool QFile::open( int m )
}
#if defined(HAS_TEXT_FILEMODE)
if ( isTranslated() )
+#ifdef __CYGWIN__
+ /* Do nothing, allowing the Cygwin mount mode to take effect. */;
+#else
oflags |= OPEN_TEXT;
+#endif
else
oflags |= OPEN_BINARY;
#endif
@@ -214,7 +218,11 @@ bool QFile::open( int m )
qstrcpy( perm2, perm );
#if defined(HAS_TEXT_FILEMODE)
if ( isTranslated() )
+#ifdef __CYGWIN__
+ /* Do nothing, allowing the Cygwin mount mode to take effect. */;
+#else
strcat( perm2, "t" );
+#endif
else
strcat( perm2, "b" );
#endif