Eneboo - Documentación para desarrolladores
src/qt/mkspecs/win32-borland/qplatformdefs.h
Ir a la documentación de este archivo.
00001 #ifndef QPLATFORMDEFS_H
00002 #define QPLATFORMDEFS_H
00003 
00004 #ifdef UNICODE
00005 #ifndef _UNICODE
00006 #define _UNICODE
00007 #endif
00008 #endif
00009 
00010 // Get Qt defines/settings
00011 
00012 #include "qglobal.h"
00013 #define Q_FS_FAT
00014 
00015 #define _POSIX_
00016 #include <limits.h>
00017 #undef _POSIX_
00018 
00019 #include <tchar.h>
00020 #include <io.h>
00021 #include <direct.h>
00022 #include <stdio.h>
00023 #include <fcntl.h>
00024 #include <errno.h>
00025 #include <sys/stat.h>
00026 #include <dos.h>
00027 #include <stdlib.h>
00028 #include <windows.h>
00029 
00030 #if __BORLANDC__ >= 0x550
00031 // Borland Builder 6
00032 
00033 #ifdef QT_LARGEFILE_SUPPORT
00034 #  define QT_STATBUF            struct stati64          // non-ANSI defs
00035 #  define QT_STATBUF4TSTAT      struct stati64          // non-ANSI defs
00036 #  define QT_STAT               ::_stati64
00037 #  define QT_FSTAT              ::fstati64
00038 #  define QT_LSEEK              ::_lseeki64
00039 #  define QT_TSTAT              ::_tstati64
00040 #else
00041 #  define QT_STATBUF            struct stat             // non-ANSI defs
00042 #  define QT_STATBUF4TSTAT      struct _stat            // non-ANSI defs
00043 #  define QT_STAT               ::stat
00044 #  define QT_FSTAT              ::fstat
00045 #  define QT_LSEEK              ::_lseek
00046 #  define QT_TSTAT              ::_tstat
00047 #endif
00048 
00049 #define QT_STAT_REG             _S_IFREG
00050 #define QT_STAT_DIR             _S_IFDIR
00051 #define QT_STAT_MASK            _S_IFMT
00052 
00053 #if defined(_S_IFLNK)
00054 #  define QT_STAT_LNK           _S_IFLNK
00055 #endif
00056 
00057 #define QT_FILENO               _fileno
00058 #define QT_OPEN                 ::open
00059 #define QT_CLOSE                ::_close
00060 
00061 #define QT_READ                 ::_read
00062 #define QT_WRITE                ::_write
00063 #define QT_ACCESS               ::_access
00064 #define QT_GETCWD               ::_getcwd
00065 #define QT_CHDIR                ::chdir
00066 #define QT_MKDIR                ::_mkdir
00067 #define QT_RMDIR                ::_rmdir
00068 #define QT_OPEN_RDONLY          _O_RDONLY
00069 #define QT_OPEN_WRONLY          _O_WRONLY
00070 #define QT_OPEN_RDWR            _O_RDWR
00071 #define QT_OPEN_CREAT           _O_CREAT
00072 #define QT_OPEN_TRUNC           _O_TRUNC
00073 #define QT_OPEN_APPEND          _O_APPEND
00074 
00075 #if defined(O_TEXT)
00076 #  define QT_OPEN_TEXT          _O_TEXT
00077 #  define QT_OPEN_BINARY        _O_BINARY
00078 #endif
00079 
00080 #else
00081 // Borland Builder 5
00082 
00083 #ifdef QT_LARGEFILE_SUPPORT
00084 #  define QT_STATBUF            struct stati64          // non-ANSI defs
00085 #  define QT_STATBUF4TSTAT      struct stati64          // non-ANSI defs
00086 #  define QT_STAT               ::stati64
00087 #  define QT_FSTAT              ::fstati64
00088 #  define QT_LSEEK              ::lseeki64
00089 #  define QT_TSTAT              ::tstati64
00090 #else
00091 #  define QT_STATBUF            struct stat             // non-ANSI defs
00092 #  define QT_STATBUF4TSTAT      struct stat             // non-ANSI defs
00093 #  define QT_STAT               ::stat
00094 #  define QT_FSTAT              ::fstat
00095 #  define QT_LSEEK              ::lseek
00096 #  define QT_TSTAT              ::tstat
00097 #endif
00098 
00099 #define QT_STAT_REG             S_IFREG
00100 #define QT_STAT_DIR             S_IFDIR
00101 #define QT_STAT_MASK            S_IFMT
00102 
00103 #if defined(S_IFLNK)
00104 #  define QT_STAT_LNK           S_IFLNK
00105 #endif
00106 
00107 #define QT_FILENO               fileno
00108 #define QT_OPEN                 ::open
00109 #define QT_CLOSE                ::close
00110 
00111 #define QT_READ                 ::read
00112 #define QT_WRITE                ::write
00113 #define QT_ACCESS               ::access
00114 
00115 #if defined(Q_OS_OS2EMX)
00116     // This is documented in the un*x to OS/2-EMX Porting FAQ:
00117     // http://homepages.tu-darmstadt.de/~st002279/os2/porting.html
00118 #  define QT_GETCWD             ::_getcwd2
00119 #  define QT_CHDIR              ::_chdir2
00120 #else
00121 #  define QT_GETCWD             ::getcwd
00122 #  define QT_CHDIR              ::chdir
00123 #endif
00124 
00125 #define QT_MKDIR                ::mkdir
00126 #define QT_RMDIR                ::rmdir
00127 #define QT_OPEN_RDONLY          O_RDONLY
00128 #define QT_OPEN_WRONLY          O_WRONLY
00129 #define QT_OPEN_RDWR            O_RDWR
00130 #define QT_OPEN_CREAT           O_CREAT
00131 #define QT_OPEN_TRUNC           O_TRUNC
00132 #define QT_OPEN_APPEND          O_APPEND
00133 
00134 #if defined(O_TEXT)
00135 #  define QT_OPEN_TEXT          O_TEXT
00136 #  define QT_OPEN_BINARY        O_BINARY
00137 #endif
00138 
00139 #endif // __BORLANDC__ >= 0x550
00140 
00141 // Borland Builder 5 and 6
00142 
00143 #define QT_SIGNAL_ARGS          int
00144 
00145 #define QT_VSNPRINTF            ::_vsnprintf
00146 #define QT_SNPRINTF             ::_snprintf
00147 
00148 # define F_OK   0
00149 # define X_OK   1
00150 # define W_OK   2
00151 # define R_OK   4
00152 
00153 
00154 #endif // QPLATFORMDEFS_H
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'