summaryrefslogtreecommitdiffstats
path: root/qtools/qfile_unix.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2005-04-21 21:10:51 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2005-04-21 21:10:51 (GMT)
commit5d31b7ab211586100301d6838be82f066f8f9af4 (patch)
tree81218085d3e6e15b1ce6c418734013d48e9deda8 /qtools/qfile_unix.cpp
parent76e39987363c93fdd3f2d99ffdb9f87743d6af7c (diff)
downloadDoxygen-5d31b7ab211586100301d6838be82f066f8f9af4.zip
Doxygen-5d31b7ab211586100301d6838be82f066f8f9af4.tar.gz
Doxygen-5d31b7ab211586100301d6838be82f066f8f9af4.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