1 /****************************************************************************
3 ** Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.
5 ** This file is part of the qmake spec of the Qt Toolkit.
7 ** This file may be used under the terms of the GNU General Public
8 ** License version 2.0 as published by the Free Software Foundation
9 ** and appearing in the file LICENSE.GPL included in the packaging of
10 ** this file. Please review the following information to ensure GNU
11 ** General Public Licensing requirements will be met:
12 ** http://www.trolltech.com/products/qt/opensource.html
14 ** If you are unsure which license is appropriate for your use, please
15 ** review the following information:
16 ** http://www.trolltech.com/products/qt/licensing.html or contact the
17 ** sales department at sales@trolltech.com.
19 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
22 ****************************************************************************/
24 #ifndef QPLATFORMDEFS_H
25 #define QPLATFORMDEFS_H
33 // Get Qt defines/settings
48 #if !defined(_WIN32_WINNT) || (_WIN32_WINNT-0 < 0x0500)
51 NameFullyQualifiedDN = 1,
52 NameSamCompatible = 2,
56 NameUserPrincipal = 8,
58 NameServicePrincipal = 10,
60 } EXTENDED_NAME_FORMAT, *PEXTENDED_NAME_FORMAT;
64 #ifdef QT_LARGEFILE_SUPPORT
65 #define QT_STATBUF struct _stati64 // non-ANSI defs
66 #define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs
67 #define QT_STAT ::_stati64
68 #define QT_FSTAT ::_fstati64
70 #define QT_STATBUF struct _stat // non-ANSI defs
71 #define QT_STATBUF4TSTAT struct _stat // non-ANSI defs
72 #define QT_STAT ::_stat
73 #define QT_FSTAT ::_fstat
75 #define QT_STAT_REG _S_IFREG
76 #define QT_STAT_DIR _S_IFDIR
77 #define QT_STAT_MASK _S_IFMT
79 # define QT_STAT_LNK _S_IFLNK
81 #define QT_FILENO _fileno
82 #define QT_OPEN ::_open
83 #define QT_CLOSE ::_close
84 #ifdef QT_LARGEFILE_SUPPORT
85 #define QT_LSEEK ::_lseeki64
87 #define QT_TSTAT ::_stati64
89 #define QT_TSTAT ::_wstati64
92 #define QT_LSEEK ::_lseek
94 #define QT_TSTAT ::_stat
96 #define QT_TSTAT ::_wstat
99 #define QT_READ ::_read
100 #define QT_WRITE ::_write
101 #define QT_ACCESS ::_access
102 #define QT_GETCWD ::_getcwd
103 #define QT_CHDIR ::_chdir
104 #define QT_MKDIR ::_mkdir
105 #define QT_RMDIR ::_rmdir
106 #define QT_OPEN_LARGEFILE 0
107 #define QT_OPEN_RDONLY _O_RDONLY
108 #define QT_OPEN_WRONLY _O_WRONLY
109 #define QT_OPEN_RDWR _O_RDWR
110 #define QT_OPEN_CREAT _O_CREAT
111 #define QT_OPEN_TRUNC _O_TRUNC
112 #define QT_OPEN_APPEND _O_APPEND
114 # define QT_OPEN_TEXT _O_TEXT
115 # define QT_OPEN_BINARY _O_BINARY
118 #define QT_FOPEN ::fopen
119 #ifdef QT_LARGEFILE_SUPPORT
120 #define QT_FSEEK ::fseeko64
121 #define QT_FTELL ::ftello64
123 #define QT_FSEEK ::fseek
124 #define QT_FTELL ::ftell
126 #define QT_FGETPOS ::fgetpos
127 #define QT_FSETPOS ::fsetpos
128 #define QT_FPOS_T fpos_t
129 #ifdef QT_LARGEFILE_SUPPORT
130 #define QT_OFF_T off64_t
132 #define QT_OFF_T long
135 #define QT_SIGNAL_ARGS int
137 #define QT_VSNPRINTF ::_vsnprintf
138 #define QT_SNPRINTF ::_snprintf
146 #endif // QPLATFORMDEFS_H