globally remove all trailing whitespace from ardour code base.
[ardour.git] / libs / qm-dsp / build / mingw32 / mkspecs / win32-x-g++ / qplatformdefs.h
1 /****************************************************************************
2 **
3 ** Copyright (C) 1992-2007 Trolltech ASA. All rights reserved.
4 **
5 ** This file is part of the qmake spec of the Qt Toolkit.
6 **
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
13 **
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.
18 **
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.
21 **
22 ****************************************************************************/
23
24 #ifndef QPLATFORMDEFS_H
25 #define QPLATFORMDEFS_H
26
27 #ifdef UNICODE
28 #ifndef _UNICODE
29 #define _UNICODE
30 #endif
31 #endif
32
33 // Get Qt defines/settings
34
35 #include "qglobal.h"
36
37 #include <tchar.h>
38 #include <io.h>
39 #include <direct.h>
40 #include <stdio.h>
41 #include <fcntl.h>
42 #include <errno.h>
43 #include <sys/stat.h>
44 #include <stdlib.h>
45 #include <windows.h>
46 #include <limits.h>
47
48 #if !defined(_WIN32_WINNT) || (_WIN32_WINNT-0 < 0x0500)
49 typedef enum {
50     NameUnknown           = 0,
51     NameFullyQualifiedDN  = 1,
52     NameSamCompatible     = 2,
53     NameDisplay           = 3,
54     NameUniqueId          = 6,
55     NameCanonical         = 7,
56     NameUserPrincipal     = 8,
57     NameCanonicalEx       = 9,
58     NameServicePrincipal  = 10,
59     NameDnsDomain         = 12
60 } EXTENDED_NAME_FORMAT, *PEXTENDED_NAME_FORMAT;
61 #endif
62
63 #define Q_FS_FAT
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
69 #else
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
74 #endif
75 #define QT_STAT_REG             _S_IFREG
76 #define QT_STAT_DIR             _S_IFDIR
77 #define QT_STAT_MASK            _S_IFMT
78 #if defined(_S_IFLNK)
79 #  define QT_STAT_LNK           _S_IFLNK
80 #endif
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
86 #ifndef UNICODE
87 #define QT_TSTAT                ::_stati64
88 #else
89 #define QT_TSTAT                ::_wstati64
90 #endif
91 #else
92 #define QT_LSEEK                ::_lseek
93 #ifndef UNICODE
94 #define QT_TSTAT                ::_stat
95 #else
96 #define QT_TSTAT                ::_wstat
97 #endif
98 #endif
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
113 #if defined(O_TEXT)
114 # define QT_OPEN_TEXT           _O_TEXT
115 # define QT_OPEN_BINARY         _O_BINARY
116 #endif
117
118 #define QT_FOPEN                ::fopen
119 #ifdef QT_LARGEFILE_SUPPORT
120 #define QT_FSEEK                ::fseeko64
121 #define QT_FTELL                ::ftello64
122 #else
123 #define QT_FSEEK                ::fseek
124 #define QT_FTELL                ::ftell
125 #endif
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
131 #else
132 #define QT_OFF_T                long
133 #endif
134
135 #define QT_SIGNAL_ARGS          int
136
137 #define QT_VSNPRINTF            ::_vsnprintf
138 #define QT_SNPRINTF             ::_snprintf
139
140 # define F_OK   0
141 # define X_OK   1
142 # define W_OK   2
143 # define R_OK   4
144
145
146 #endif // QPLATFORMDEFS_H