diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-10-05 12:34:05 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2003-10-05 12:34:05 (GMT) |
commit | aaf87cb6d6601d665a06dc4556da4ce10c98e127 (patch) | |
tree | 97864d162da48ec2548b1b05987ddbb5301769b1 /qtools | |
parent | 7cdb9679aa5e9baf87772f2c7799ff7b5fe01207 (diff) | |
download | Doxygen-aaf87cb6d6601d665a06dc4556da4ce10c98e127.zip Doxygen-aaf87cb6d6601d665a06dc4556da4ce10c98e127.tar.gz Doxygen-aaf87cb6d6601d665a06dc4556da4ce10c98e127.tar.bz2 |
Release-1.3.4-20031005
Diffstat (limited to 'qtools')
-rw-r--r-- | qtools/qfile_unix.cpp | 11 | ||||
-rw-r--r-- | qtools/qfile_win32.cpp | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/qtools/qfile_unix.cpp b/qtools/qfile_unix.cpp index e074eed..74b73d2 100644 --- a/qtools/qfile_unix.cpp +++ b/qtools/qfile_unix.cpp @@ -40,6 +40,17 @@ #include "qfile.h" #include "qfiledefs_p.h" +#if defined(_OS_MAC_) || defined(_OS_MSDOS_) || defined(_OS_WIN32_) || defined(_OS_OS2_) +# define HAS_TEXT_FILEMODE // has translate/text filemode +#endif +#if defined(O_NONBLOCK) +# define HAS_ASYNC_FILEMODE +# define OPEN_ASYNC O_NONBLOCK +#elif defined(O_NDELAY) +# define HAS_ASYNC_FILEMODE +# define OPEN_ASYNC O_NDELAY +#endif + bool qt_file_access( const QString& fn, int t ) { if ( fn.isEmpty() ) diff --git a/qtools/qfile_win32.cpp b/qtools/qfile_win32.cpp index fd28d43..39b1fa5 100644 --- a/qtools/qfile_win32.cpp +++ b/qtools/qfile_win32.cpp @@ -23,6 +23,17 @@ #include "qfile.h" #include "qfiledefs_p.h" +#if defined(_OS_MAC_) || defined(_OS_MSDOS_) || defined(_OS_WIN32_) || defined(_OS_OS2_) +# define HAS_TEXT_FILEMODE // has translate/text filemode +#endif +#if defined(O_NONBLOCK) +# define HAS_ASYNC_FILEMODE +# define OPEN_ASYNC O_NONBLOCK +#elif defined(O_NDELAY) +# define HAS_ASYNC_FILEMODE +# define OPEN_ASYNC O_NDELAY +#endif + bool qt_file_access( const QString& fn, int t ) { if ( fn.isEmpty() ) |