1 /****************************************************************************
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
4 ** All rights reserved.
5 ** Contact: Nokia Corporation (qt-info@nokia.com)
7 ** This file is part of the qmake spec of the Qt Toolkit.
9 ** $QT_BEGIN_LICENSE:LGPL$
10 ** No Commercial Usage
11 ** This file contains pre-release code and may not be distributed.
12 ** You may use this file in accordance with the terms and conditions
13 ** contained in the Technology Preview License Agreement accompanying
16 ** GNU Lesser General Public License Usage
17 ** Alternatively, this file may be used under the terms of the GNU Lesser
18 ** General Public License version 2.1 as published by the Free Software
19 ** Foundation and appearing in the file LICENSE.LGPL included in the
20 ** packaging of this file. Please review the following information to
21 ** ensure the GNU Lesser General Public License version 2.1 requirements
22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
24 ** In addition, as a special exception, Nokia gives you certain additional
25 ** rights. These rights are described in the Nokia Qt LGPL Exception
26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
28 ** If you have questions regarding the use of this file, please contact
29 ** Nokia at qt-info@nokia.com.
40 ****************************************************************************/
42 #ifndef QPLATFORMDEFS_H
43 #define QPLATFORMDEFS_H
51 // Get Qt defines/settings
63 #include <qt_windows.h>
66 #if !defined(_WIN32_WINNT) || (_WIN32_WINNT-0 < 0x0500)
69 NameFullyQualifiedDN
= 1,
70 NameSamCompatible
= 2,
74 NameUserPrincipal
= 8,
76 NameServicePrincipal
= 10,
78 } EXTENDED_NAME_FORMAT
, *PEXTENDED_NAME_FORMAT
;
82 #ifdef QT_LARGEFILE_SUPPORT
83 #define QT_STATBUF struct _stati64 // non-ANSI defs
84 #define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs
85 #define QT_STAT ::_stati64
86 #define QT_FSTAT ::_fstati64
88 #define QT_STATBUF struct _stat // non-ANSI defs
89 #define QT_STATBUF4TSTAT struct _stat // non-ANSI defs
90 #define QT_STAT ::_stat
91 #define QT_FSTAT ::_fstat
93 #define QT_STAT_REG _S_IFREG
94 #define QT_STAT_DIR _S_IFDIR
95 #define QT_STAT_MASK _S_IFMT
97 # define QT_STAT_LNK _S_IFLNK
99 #define QT_FILENO _fileno
100 #define QT_OPEN ::_open
101 #define QT_CLOSE ::_close
102 #ifdef QT_LARGEFILE_SUPPORT
103 #define QT_LSEEK ::_lseeki64
105 #define QT_TSTAT ::_stati64
107 #define QT_TSTAT ::_wstati64
110 #define QT_LSEEK ::_lseek
112 #define QT_TSTAT ::_stat
114 #define QT_TSTAT ::_wstat
117 #define QT_READ ::_read
118 #define QT_WRITE ::_write
119 #define QT_ACCESS ::_access
120 #define QT_GETCWD ::_getcwd
121 #define QT_CHDIR ::_chdir
122 #define QT_MKDIR ::_mkdir
123 #define QT_RMDIR ::_rmdir
124 #define QT_OPEN_LARGEFILE 0
125 #define QT_OPEN_RDONLY _O_RDONLY
126 #define QT_OPEN_WRONLY _O_WRONLY
127 #define QT_OPEN_RDWR _O_RDWR
128 #define QT_OPEN_CREAT _O_CREAT
129 #define QT_OPEN_TRUNC _O_TRUNC
130 #define QT_OPEN_APPEND _O_APPEND
132 # define QT_OPEN_TEXT _O_TEXT
133 # define QT_OPEN_BINARY _O_BINARY
136 #define QT_FOPEN ::fopen
137 #ifdef QT_LARGEFILE_SUPPORT
138 #define QT_FSEEK ::fseeko64
139 #define QT_FTELL ::ftello64
141 #define QT_FSEEK ::fseek
142 #define QT_FTELL ::ftell
144 #define QT_FGETPOS ::fgetpos
145 #define QT_FSETPOS ::fsetpos
146 #define QT_FPOS_T fpos_t
147 #ifdef QT_LARGEFILE_SUPPORT
148 #define QT_OFF_T off64_t
150 #define QT_OFF_T long
153 #define QT_SIGNAL_ARGS int
155 #define QT_VSNPRINTF ::_vsnprintf
156 #define QT_SNPRINTF ::_snprintf
164 #endif // QPLATFORMDEFS_H