home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qt3_emx.zip / mkspecs / win32-msvc / qplatformdefs.h < prev    next >
C/C++ Source or Header  |  2001-12-03  |  1KB  |  71 lines

  1. #ifndef QPLATFORMDEFS_H
  2. #define QPLATFORMDEFS_H
  3.  
  4. #ifdef UNICODE
  5. #ifndef _UNICODE
  6. #define _UNICODE
  7. #endif
  8. #endif
  9.  
  10. // Get Qt defines/settings
  11.  
  12. #include "qglobal.h"
  13.  
  14. #define _POSIX_
  15. #include <limits.h>
  16. #undef _POSIX_
  17.  
  18. #include <tchar.h>
  19. #include <io.h>
  20. #include <direct.h>
  21. #include <stdio.h>
  22. #include <fcntl.h>
  23. #include <errno.h>
  24. #include <sys/stat.h>
  25. #include <stdlib.h>
  26. #include <windows.h>
  27.  
  28. #define Q_FS_FAT
  29. #define QT_STATBUF        struct _stat        // non-ANSI defs
  30. #define QT_STATBUF4TSTAT    struct _stat        // non-ANSI defs
  31. #define QT_STAT            ::_stat
  32. #define QT_FSTAT        ::_fstat
  33. #define QT_STAT_REG        _S_IFREG
  34. #define QT_STAT_DIR        _S_IFDIR
  35. #define QT_STAT_MASK        _S_IFMT
  36. #if defined(_S_IFLNK)
  37. #  define QT_STAT_LNK        _S_IFLNK
  38. #endif
  39. #define QT_FILENO        _fileno
  40. #define QT_OPEN            ::_open
  41. #define QT_CLOSE        ::_close
  42. #define QT_LSEEK        ::_lseek
  43. #define QT_READ            ::_read
  44. #define QT_WRITE        ::_write
  45. #define QT_ACCESS        ::_access
  46. #define QT_GETCWD        ::_getcwd
  47. #define QT_CHDIR        ::_chdir
  48. #define QT_MKDIR        ::_mkdir
  49. #define QT_RMDIR        ::_rmdir
  50. #define QT_OPEN_RDONLY        _O_RDONLY
  51. #define QT_OPEN_WRONLY        _O_WRONLY
  52. #define QT_OPEN_RDWR        _O_RDWR
  53. #define QT_OPEN_CREAT        _O_CREAT
  54. #define QT_OPEN_TRUNC        _O_TRUNC
  55. #define QT_OPEN_APPEND        _O_APPEND
  56. #if defined(O_TEXT)
  57. # define QT_OPEN_TEXT        _O_TEXT
  58. # define QT_OPEN_BINARY        _O_BINARY
  59. #endif
  60.  
  61. #define QT_VSNPRINTF        ::_vsnprintf
  62. #define QT_SNPRINTF        ::_snprintf
  63.  
  64. # define F_OK    0
  65. # define X_OK    1
  66. # define W_OK    2
  67. # define R_OK    4
  68.  
  69.  
  70. #endif // QPLATFORMDEFS_H
  71.