Diffstat (limited to 'mkspecs/mac9-mwerks/qplatformdefs.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | mkspecs/mac9-mwerks/qplatformdefs.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/mkspecs/mac9-mwerks/qplatformdefs.h b/mkspecs/mac9-mwerks/qplatformdefs.h new file mode 100644 index 0000000..fdc7d3d --- a/dev/null +++ b/mkspecs/mac9-mwerks/qplatformdefs.h | |||
@@ -0,0 +1,62 @@ | |||
1 | #ifndef QPLATFORMDEFS_H | ||
2 | #define QPLATFORMDEFS_H | ||
3 | |||
4 | // Get Qt defines/settings | ||
5 | |||
6 | #include "qglobal.h" | ||
7 | |||
8 | // Set any POSIX/XOPEN defines at the top of this file to turn on specific APIs | ||
9 | |||
10 | #include <unistd.h> | ||
11 | |||
12 | |||
13 | // We are hot - unistd.h should have turned on the specific APIs we requested | ||
14 | |||
15 | |||
16 | #ifdef QT_THREAD_SUPPORT | ||
17 | #include <pthread.h> | ||
18 | #endif | ||
19 | |||
20 | #include <fcntl.h> | ||
21 | #include <signal.h> | ||
22 | #include <stat.h> | ||
23 | |||
24 | #if !defined(QT_NO_COMPAT) | ||
25 | #define QT_STATBUF struct stat | ||
26 | #define QT_STATBUF4TSTATstruct stat | ||
27 | #define QT_STAT ::stat | ||
28 | #define QT_FSTAT ::fstat | ||
29 | #define QT_STAT_REG S_IFREG | ||
30 | #define QT_STAT_DIR S_IFDIR | ||
31 | #define QT_STAT_MASK S_IFMT | ||
32 | #define QT_STAT_LNK S_IFLNK | ||
33 | #define QT_FILENO fileno | ||
34 | #define QT_OPEN ::open | ||
35 | #define QT_CLOSE ::close | ||
36 | #define QT_LSEEK ::lseek | ||
37 | #define QT_READ ::read | ||
38 | #define QT_WRITE ::write | ||
39 | #define QT_ACCESS ::access | ||
40 | #define QT_GETCWD ::getcwd | ||
41 | #define QT_CHDIR ::chdir | ||
42 | #define QT_MKDIR ::mkdir | ||
43 | #define QT_RMDIR ::rmdir | ||
44 | #define QT_OPEN_RDONLY O_RDONLY | ||
45 | #define QT_OPEN_WRONLY O_WRONLY | ||
46 | #define QT_OPEN_RDWR O_RDWR | ||
47 | #define QT_OPEN_CREAT O_CREAT | ||
48 | #define QT_OPEN_TRUNC O_TRUNC | ||
49 | #define QT_OPEN_APPEND O_APPEND | ||
50 | #endif | ||
51 | |||
52 | #define QT_SIGNAL_RETTYPEvoid | ||
53 | #define QT_SIGNAL_ARGS | ||
54 | #define QT_SIGNAL_IGNORE(void (*)())1 | ||
55 | |||
56 | #define QT_SOCKLEN_T int | ||
57 | |||
58 | #define QT_SNPRINTF ::snprintf | ||
59 | #define QT_VSNPRINTF ::vsnprintf | ||
60 | |||
61 | |||
62 | #endif // QPLATFORMDEFS_H | ||