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://trolltech.com/products/qt/licenses/licensing/opensource/
14 ** If you are unsure which license is appropriate for your use, please
15 ** review the following information:
16 ** http://trolltech.com/products/qt/licenses/licensing/licensingoverview
17 ** or contact the sales department at sales@trolltech.com.
19 ** In addition, as a special exception, Trolltech gives you certain
20 ** additional rights. These rights are described in the Trolltech GPL
21 ** Exception version 1.0, which can be found at
22 ** http://www.trolltech.com/products/qt/gplexception/ and in the file
23 ** GPL_EXCEPTION.txt in this package.
25 ** In addition, as a special exception, Trolltech, as the sole copyright
26 ** holder for Qt Designer, grants users of the Qt/Eclipse Integration
27 ** plug-in the right for the Qt/Eclipse Integration to link to
28 ** functionality provided by Qt Designer and its related libraries.
30 ** Trolltech reserves all rights not expressly granted herein.
32 ** Trolltech ASA (c) 2007
34 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
35 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
37 ****************************************************************************/
39 #ifndef QPLATFORMDEFS_H
40 #define QPLATFORMDEFS_H
48 // Get Qt defines/settings
63 #if !defined(_WIN32_WINNT) || (_WIN32_WINNT-0 < 0x0500)
66 NameFullyQualifiedDN = 1,
67 NameSamCompatible = 2,
71 NameUserPrincipal = 8,
73 NameServicePrincipal = 10,
75 } EXTENDED_NAME_FORMAT, *PEXTENDED_NAME_FORMAT;
79 #ifdef QT_LARGEFILE_SUPPORT
80 #define QT_STATBUF struct _stati64 // non-ANSI defs
81 #define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs
82 #define QT_STAT ::_stati64
83 #define QT_FSTAT ::_fstati64
85 #define QT_STATBUF struct _stat // non-ANSI defs
86 #define QT_STATBUF4TSTAT struct _stat // non-ANSI defs
87 #define QT_STAT ::_stat
88 #define QT_FSTAT ::_fstat
90 #define QT_STAT_REG _S_IFREG
91 #define QT_STAT_DIR _S_IFDIR
92 #define QT_STAT_MASK _S_IFMT
94 # define QT_STAT_LNK _S_IFLNK
96 #define QT_FILENO _fileno
97 #define QT_OPEN ::_open
98 #define QT_CLOSE ::_close
99 #ifdef QT_LARGEFILE_SUPPORT
100 #define QT_LSEEK ::_lseeki64
102 #define QT_TSTAT ::_stati64
104 #define QT_TSTAT ::_wstati64
107 #define QT_LSEEK ::_lseek
109 #define QT_TSTAT ::_stat
111 #define QT_TSTAT ::_wstat
114 #define QT_READ ::_read
115 #define QT_WRITE ::_write
116 #define QT_ACCESS ::_access
117 #define QT_GETCWD ::_getcwd
118 #define QT_CHDIR ::_chdir
119 #define QT_MKDIR ::_mkdir
120 #define QT_RMDIR ::_rmdir
121 #define QT_OPEN_LARGEFILE 0
122 #define QT_OPEN_RDONLY _O_RDONLY
123 #define QT_OPEN_WRONLY _O_WRONLY
124 #define QT_OPEN_RDWR _O_RDWR
125 #define QT_OPEN_CREAT _O_CREAT
126 #define QT_OPEN_TRUNC _O_TRUNC
127 #define QT_OPEN_APPEND _O_APPEND
129 # define QT_OPEN_TEXT _O_TEXT
130 # define QT_OPEN_BINARY _O_BINARY
133 #define QT_FOPEN ::fopen
134 #ifdef QT_LARGEFILE_SUPPORT
135 #define QT_FSEEK ::fseeko64
136 #define QT_FTELL ::ftello64
138 #define QT_FSEEK ::fseek
139 #define QT_FTELL ::ftell
141 #define QT_FGETPOS ::fgetpos
142 #define QT_FSETPOS ::fsetpos
143 #define QT_FPOS_T fpos_t
144 #ifdef QT_LARGEFILE_SUPPORT
145 #define QT_OFF_T off64_t
147 #define QT_OFF_T long
150 #define QT_SIGNAL_ARGS int
152 #define QT_VSNPRINTF ::_vsnprintf
153 #define QT_SNPRINTF ::_snprintf
161 #endif // QPLATFORMDEFS_H