Diffstat (limited to 'mkspecs/win32-msvc.net/qplatformdefs.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | mkspecs/win32-msvc.net/qplatformdefs.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mkspecs/win32-msvc.net/qplatformdefs.h b/mkspecs/win32-msvc.net/qplatformdefs.h index 76ed8af..d828db8 100644 --- a/mkspecs/win32-msvc.net/qplatformdefs.h +++ b/mkspecs/win32-msvc.net/qplatformdefs.h | |||
@@ -1,87 +1,87 @@ | |||
1 | #ifndef QPLATFORMDEFS_H | 1 | #ifndef QPLATFORMDEFS_H |
2 | #define QPLATFORMDEFS_H | 2 | #define QPLATFORMDEFS_H |
3 | 3 | ||
4 | #ifdef UNICODE | 4 | #ifdef UNICODE |
5 | #ifndef _UNICODE | 5 | #ifndef _UNICODE |
6 | #define _UNICODE | 6 | #define _UNICODE |
7 | #endif | 7 | #endif |
8 | #endif | 8 | #endif |
9 | 9 | ||
10 | // Get Qt defines/settings | 10 | // Get Qt defines/settings |
11 | 11 | ||
12 | #include "qglobal.h" | 12 | #include "qglobal.h" |
13 | 13 | ||
14 | #define _POSIX_ | 14 | #define _POSIX_ |
15 | #include <limits.h> | 15 | #include <limits.h> |
16 | #undef _POSIX_ | 16 | #undef _POSIX_ |
17 | 17 | ||
18 | #include <tchar.h> | 18 | #include <tchar.h> |
19 | #include <io.h> | 19 | #include <io.h> |
20 | #include <direct.h> | 20 | #include <direct.h> |
21 | #include <stdio.h> | 21 | #include <stdio.h> |
22 | #include <fcntl.h> | 22 | #include <fcntl.h> |
23 | #include <errno.h> | 23 | #include <errno.h> |
24 | #include <sys/stat.h> | 24 | #include <sys/stat.h> |
25 | #include <stdlib.h> | 25 | #include <stdlib.h> |
26 | #include <windows.h> | 26 | #include <windows.h> |
27 | 27 | ||
28 | #define Q_FS_FAT | 28 | #define Q_FS_FAT |
29 | #ifdef QT_LARGE_FILE_SUPPORT | 29 | #ifdef QT_LARGEFILE_SUPPORT |
30 | #define QT_STATBUF struct _stati64 // non-ANSI defs | 30 | #define QT_STATBUF struct _stati64 // non-ANSI defs |
31 | #define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs | 31 | #define QT_STATBUF4TSTAT struct _stati64 // non-ANSI defs |
32 | #define QT_STAT ::_stati64 | 32 | #define QT_STAT ::_stati64 |
33 | #define QT_FSTAT ::_fstati64 | 33 | #define QT_FSTAT ::_fstati64 |
34 | #else | 34 | #else |
35 | #define QT_STATBUF struct _stat // non-ANSI defs | 35 | #define QT_STATBUF struct _stat // non-ANSI defs |
36 | #define QT_STATBUF4TSTAT struct _stat // non-ANSI defs | 36 | #define QT_STATBUF4TSTAT struct _stat // non-ANSI defs |
37 | #define QT_STAT ::_stat | 37 | #define QT_STAT ::_stat |
38 | #define QT_FSTAT ::_fstat | 38 | #define QT_FSTAT ::_fstat |
39 | #endif | 39 | #endif |
40 | #define QT_STAT_REG _S_IFREG | 40 | #define QT_STAT_REG _S_IFREG |
41 | #define QT_STAT_DIR _S_IFDIR | 41 | #define QT_STAT_DIR _S_IFDIR |
42 | #define QT_STAT_MASK _S_IFMT | 42 | #define QT_STAT_MASK _S_IFMT |
43 | #if defined(_S_IFLNK) | 43 | #if defined(_S_IFLNK) |
44 | # define QT_STAT_LNK _S_IFLNK | 44 | # define QT_STAT_LNK _S_IFLNK |
45 | #endif | 45 | #endif |
46 | #define QT_FILENO _fileno | 46 | #define QT_FILENO _fileno |
47 | #define QT_OPEN ::_open | 47 | #define QT_OPEN ::_open |
48 | #define QT_CLOSE ::_close | 48 | #define QT_CLOSE ::_close |
49 | #ifdef QT_LARGE_FILE_SUPPORT | 49 | #ifdef QT_LARGEFILE_SUPPORT |
50 | #define QT_LSEEK ::_lseeki64 | 50 | #define QT_LSEEK ::_lseeki64 |
51 | #define QT_TSTAT ::_tstati64 | 51 | #define QT_TSTAT ::_tstati64 |
52 | #else | 52 | #else |
53 | #define QT_LSEEK ::_lseek | 53 | #define QT_LSEEK ::_lseek |
54 | #define QT_TSTAT ::_tstat | 54 | #define QT_TSTAT ::_tstat |
55 | #endif | 55 | #endif |
56 | #define QT_READ ::_read | 56 | #define QT_READ ::_read |
57 | #define QT_WRITE ::_write | 57 | #define QT_WRITE ::_write |
58 | #define QT_ACCESS ::_access | 58 | #define QT_ACCESS ::_access |
59 | #define QT_GETCWD ::_getcwd | 59 | #define QT_GETCWD ::_getcwd |
60 | #define QT_CHDIR ::_chdir | 60 | #define QT_CHDIR ::_chdir |
61 | #define QT_MKDIR ::_mkdir | 61 | #define QT_MKDIR ::_mkdir |
62 | #define QT_RMDIR ::_rmdir | 62 | #define QT_RMDIR ::_rmdir |
63 | #define QT_OPEN_RDONLY _O_RDONLY | 63 | #define QT_OPEN_RDONLY _O_RDONLY |
64 | #define QT_OPEN_WRONLY _O_WRONLY | 64 | #define QT_OPEN_WRONLY _O_WRONLY |
65 | #define QT_OPEN_RDWR _O_RDWR | 65 | #define QT_OPEN_RDWR _O_RDWR |
66 | #define QT_OPEN_CREAT _O_CREAT | 66 | #define QT_OPEN_CREAT _O_CREAT |
67 | #define QT_OPEN_TRUNC _O_TRUNC | 67 | #define QT_OPEN_TRUNC _O_TRUNC |
68 | #define QT_OPEN_APPEND _O_APPEND | 68 | #define QT_OPEN_APPEND _O_APPEND |
69 | #if defined(O_TEXT) | 69 | #if defined(O_TEXT) |
70 | # define QT_OPEN_TEXT _O_TEXT | 70 | # define QT_OPEN_TEXT _O_TEXT |
71 | # define QT_OPEN_BINARY _O_BINARY | 71 | # define QT_OPEN_BINARY _O_BINARY |
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | #define QT_SIGNAL_ARGS int | 74 | #define QT_SIGNAL_ARGS int |
75 | 75 | ||
76 | #define QT_VSNPRINTF ::_vsnprintf | 76 | #define QT_VSNPRINTF ::_vsnprintf |
77 | #define QT_SNPRINTF ::_snprintf | 77 | #define QT_SNPRINTF ::_snprintf |
78 | 78 | ||
79 | # define F_OK0 | 79 | # define F_OK0 |
80 | # define X_OK1 | 80 | # define X_OK1 |
81 | # define W_OK2 | 81 | # define W_OK2 |
82 | # define R_OK4 | 82 | # define R_OK4 |
83 | 83 | ||
84 | typedef int mode_t; | 84 | typedef int mode_t; |
85 | 85 | ||
86 | 86 | ||
87 | #endif // QPLATFORMDEFS_H | 87 | #endif // QPLATFORMDEFS_H |