diff options
Diffstat (limited to 'qtools/qfile_win32.cpp')
-rw-r--r-- | qtools/qfile_win32.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
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() ) |