Eneboo - Documentación para desarrolladores
src/qt/mkspecs/win32-g++-cross/qplatformdefs.h
Ir a la documentación de este archivo.
00001 #ifndef QPLATFORMDEFS_H
00002 #define QPLATFORMDEFS_H
00003 
00004 #ifdef UNICODE
00005 #ifndef _UNICODE
00006 #define _UNICODE
00007 #endif
00008 #endif
00009 
00010 // Get Qt defines/settings
00011 
00012 #include "qglobal.h"
00013 
00014 #include <unistd.h>
00015 #include <sys/time.h>
00016 
00017 // We are hot - unistd.h should have turned on the specific APIs we requested
00018 
00019 #ifdef QT_THREAD_SUPPORT
00020 #include <pthread.h>
00021 #endif
00022 
00023 #include <tchar.h>
00024 #include <io.h>
00025 #include <direct.h>
00026 #include <stdio.h>
00027 #include <fcntl.h>
00028 #include <errno.h>
00029 #include <sys/stat.h>
00030 #include <stdlib.h>
00031 #include <windows.h>
00032 #include <locale.h>
00033 #include <ctype.h>
00034 // from winuser.h
00035 #define LWA_ALPHA 0x02
00036 
00037 #if !defined(_WIN32_WINNT) || (_WIN32_WINNT-0 < 0x0500)
00038 typedef enum {
00039     NameUnknown           = 0, 
00040     NameFullyQualifiedDN  = 1, 
00041     NameSamCompatible     = 2, 
00042     NameDisplay           = 3, 
00043     NameUniqueId          = 6, 
00044     NameCanonical         = 7, 
00045     NameUserPrincipal     = 8, 
00046     NameCanonicalEx       = 9, 
00047     NameServicePrincipal  = 10, 
00048     NameDnsDomain         = 12
00049 } EXTENDED_NAME_FORMAT, *PEXTENDED_NAME_FORMAT;
00050 #endif
00051 
00052 #define Q_FS_FAT
00053 #ifdef QT_LARGEFILE_SUPPORT
00054 #define QT_STATBUF              struct _stati64         // non-ANSI defs
00055 #define QT_STATBUF4TSTAT        struct _stati64         // non-ANSI defs
00056 #define QT_STAT                 ::_stati64
00057 #define QT_FSTAT                ::_fstati64
00058 #else
00059 #define QT_STATBUF              struct _stat            // non-ANSI defs
00060 #define QT_STATBUF4TSTAT        struct _stat            // non-ANSI defs
00061 #define QT_STAT                 ::_stat
00062 #define QT_FSTAT                ::_fstat
00063 #endif
00064 #define QT_STAT_REG             _S_IFREG
00065 #define QT_STAT_DIR             _S_IFDIR
00066 #define QT_STAT_MASK            _S_IFMT
00067 #if defined(_S_IFLNK)
00068 #  define QT_STAT_LNK           _S_IFLNK
00069 #endif
00070 #define QT_FILENO               _fileno
00071 #define QT_OPEN                 ::_open
00072 #define QT_CLOSE                ::_close
00073 #ifdef QT_LARGEFILE_SUPPORT
00074 #define QT_LSEEK                ::_lseeki64
00075 #define QT_TSTAT                ::_tstati64
00076 #else
00077 #define QT_LSEEK                ::_lseek
00078 #define QT_TSTAT                ::_tstat
00079 #endif
00080 #define QT_READ                 ::_read
00081 #define QT_WRITE                ::_write
00082 #define QT_ACCESS               ::_access
00083 #define QT_GETCWD               ::_getcwd
00084 #define QT_CHDIR                ::_chdir
00085 #define QT_MKDIR                ::_mkdir
00086 #define QT_RMDIR                ::_rmdir
00087 #define QT_OPEN_RDONLY          _O_RDONLY
00088 #define QT_OPEN_WRONLY          _O_WRONLY
00089 #define QT_OPEN_RDWR            _O_RDWR
00090 #define QT_OPEN_CREAT           _O_CREAT
00091 #define QT_OPEN_TRUNC           _O_TRUNC
00092 #define QT_OPEN_APPEND          _O_APPEND
00093 #if defined(O_TEXT)
00094 # define QT_OPEN_TEXT           _O_TEXT
00095 # define QT_OPEN_BINARY         _O_BINARY
00096 #endif
00097 
00098 #define QT_SIGNAL_ARGS          int
00099 
00100 #define QT_VSNPRINTF            ::_vsnprintf
00101 #define QT_SNPRINTF             ::_snprintf
00102 
00103 # define F_OK   0
00104 # define X_OK   1
00105 # define W_OK   2
00106 # define R_OK   4
00107 
00108 #if defined (__MINGW32__)
00109 extern "C" {
00110 __declspec (dllimport) unsigned int _controlfp (unsigned int, unsigned int);
00111 __declspec (dllimport) unsigned int _control87 (unsigned int, unsigned int);
00112 __declspec (dllimport) unsigned int _clearfp (void);
00113 __declspec (dllimport) unsigned int _statusfp (void);
00114 #define         _clear87        _clearfp
00115 #define         _status87       _statusfp
00116 }
00117 #define QT_SIGNAL_RETTYPE       void
00118 #define QT_SIGNAL_IGNORE        SIG_IGN
00119 #endif
00120 
00121 
00122 #endif // QPLATFORMDEFS_H
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'