c@261: /**************************************************************************** c@261: ** c@261: ** Copyright (C) 1992-2007 Trolltech ASA. All rights reserved. c@261: ** c@261: ** This file is part of the qmake spec of the Qt Toolkit. c@261: ** c@261: ** This file may be used under the terms of the GNU General Public c@261: ** License version 2.0 as published by the Free Software Foundation c@261: ** and appearing in the file LICENSE.GPL included in the packaging of c@261: ** this file. Please review the following information to ensure GNU c@261: ** General Public Licensing requirements will be met: c@261: ** http://www.trolltech.com/products/qt/opensource.html c@261: ** c@261: ** If you are unsure which license is appropriate for your use, please c@261: ** review the following information: c@261: ** http://www.trolltech.com/products/qt/licensing.html or contact the c@261: ** sales department at sales@trolltech.com. c@261: ** c@261: ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE c@261: ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. c@261: ** c@261: ****************************************************************************/ c@261: c@261: #ifndef QPLATFORMDEFS_H c@261: #define QPLATFORMDEFS_H c@261: c@261: #ifdef UNICODE c@261: #ifndef _UNICODE c@261: #define _UNICODE c@261: #endif c@261: #endif c@261: c@261: // Get Qt defines/settings c@261: c@261: #include "qglobal.h" c@261: c@261: #include c@261: #include c@261: #include c@261: #include c@261: #include c@261: #include c@261: #include c@261: #include c@261: #include c@261: #include c@261: c@261: #if !defined(_WIN32_WINNT) || (_WIN32_WINNT-0 < 0x0500) c@261: typedef enum { c@261: NameUnknown = 0, c@261: NameFullyQualifiedDN = 1, c@261: NameSamCompatible = 2, c@261: NameDisplay = 3, c@261: NameUniqueId = 6, c@261: NameCanonical = 7, c@261: NameUserPrincipal = 8, c@261: NameCanonicalEx = 9, c@261: NameServicePrincipal = 10, c@261: NameDnsDomain = 12 c@261: } EXTENDED_NAME_FORMAT, *PEXTENDED_NAME_FORMAT; c@261: #endif c@261: c@261: #define Q_FS_FAT c@261: #ifdef QT_LARGEFILE_SUPPORT c@261: #define QT_STATBUF struct _stati64 // non-ANSI defs c@261: #define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs c@261: #define QT_STAT ::_stati64 c@261: #define QT_FSTAT ::_fstati64 c@261: #else c@261: #define QT_STATBUF struct _stat // non-ANSI defs c@261: #define QT_STATBUF4TSTAT struct _stat // non-ANSI defs c@261: #define QT_STAT ::_stat c@261: #define QT_FSTAT ::_fstat c@261: #endif c@261: #define QT_STAT_REG _S_IFREG c@261: #define QT_STAT_DIR _S_IFDIR c@261: #define QT_STAT_MASK _S_IFMT c@261: #if defined(_S_IFLNK) c@261: # define QT_STAT_LNK _S_IFLNK c@261: #endif c@261: #define QT_FILENO _fileno c@261: #define QT_OPEN ::_open c@261: #define QT_CLOSE ::_close c@261: #ifdef QT_LARGEFILE_SUPPORT c@261: #define QT_LSEEK ::_lseeki64 c@261: #ifndef UNICODE c@261: #define QT_TSTAT ::_stati64 c@261: #else c@261: #define QT_TSTAT ::_wstati64 c@261: #endif c@261: #else c@261: #define QT_LSEEK ::_lseek c@261: #ifndef UNICODE c@261: #define QT_TSTAT ::_stat c@261: #else c@261: #define QT_TSTAT ::_wstat c@261: #endif c@261: #endif c@261: #define QT_READ ::_read c@261: #define QT_WRITE ::_write c@261: #define QT_ACCESS ::_access c@261: #define QT_GETCWD ::_getcwd c@261: #define QT_CHDIR ::_chdir c@261: #define QT_MKDIR ::_mkdir c@261: #define QT_RMDIR ::_rmdir c@261: #define QT_OPEN_LARGEFILE 0 c@261: #define QT_OPEN_RDONLY _O_RDONLY c@261: #define QT_OPEN_WRONLY _O_WRONLY c@261: #define QT_OPEN_RDWR _O_RDWR c@261: #define QT_OPEN_CREAT _O_CREAT c@261: #define QT_OPEN_TRUNC _O_TRUNC c@261: #define QT_OPEN_APPEND _O_APPEND c@261: #if defined(O_TEXT) c@261: # define QT_OPEN_TEXT _O_TEXT c@261: # define QT_OPEN_BINARY _O_BINARY c@261: #endif c@261: c@261: #define QT_FOPEN ::fopen c@261: #ifdef QT_LARGEFILE_SUPPORT c@261: #define QT_FSEEK ::fseeko64 c@261: #define QT_FTELL ::ftello64 c@261: #else c@261: #define QT_FSEEK ::fseek c@261: #define QT_FTELL ::ftell c@261: #endif c@261: #define QT_FGETPOS ::fgetpos c@261: #define QT_FSETPOS ::fsetpos c@261: #define QT_FPOS_T fpos_t c@261: #ifdef QT_LARGEFILE_SUPPORT c@261: #define QT_OFF_T off64_t c@261: #else c@261: #define QT_OFF_T long c@261: #endif c@261: c@261: #define QT_SIGNAL_ARGS int c@261: c@261: #define QT_VSNPRINTF ::_vsnprintf c@261: #define QT_SNPRINTF ::_snprintf c@261: c@261: # define F_OK 0 c@261: # define X_OK 1 c@261: # define W_OK 2 c@261: # define R_OK 4 c@261: c@261: c@261: #endif // QPLATFORMDEFS_H