00001
00031 #ifndef OS_H
00032 #define OS_H
00033
00034
00040 #if defined(__amd64__) || defined(_M_X64)
00041 #define ARCH " (AMD 64-bit)"
00042 #elif defined(__ia64__) || defined(_M_IA64)
00043 #define ARCH " (Intel 64-bit)"
00044 #elif defined(__i386__) || defined(_M_IX86) || defined(_X86_)
00045 #define ARCH " (Intel x86)"
00046 #elif defined(__powerpc__) || defined(_M_PPC)
00047 #define ARCH " (PowerPC)"
00048 #elif defined(__arm__) || defined(_M_ARM)
00049 #define ARCH " (ARM)"
00050 #elif defined(__mips__) || defined(_M_MRX000)
00051 #define ARCH " (MIPS)"
00052 #else
00053 #define ARCH ""
00054 #endif // ARCH
00055
00056
00067 #ifdef Q_OS_AIX
00068 #define OS "AIX"ARCH
00069 #define OSID quint8(1)
00070 #elif defined Q_OS_BSD4
00071 #define OS "BSD 4.4"ARCH
00072 #define OSID quint8(2)
00073 #elif defined Q_OS_BSDI
00074 #define OS "BSD/OS"ARCH
00075 #define OSID quint8(3)
00076 #elif defined Q_OS_CYGWIN
00077 #define OS "Cygwin"ARCH
00078 #define OSID quint8(4)
00079 #elif defined Q_OS_DGUX
00080 #define OS "DG/UX"ARCH
00081 #define OSID quint8(5)
00082 #elif defined Q_OS_DYNIX
00083 #define OS "DYNIX/ptx"ARCH
00084 #define OSID quint8(6)
00085 #elif defined Q_OS_FREEBSD
00086 #define OS "FreeBSD"ARCH
00087 #define OSID quint8(7)
00088 #elif defined Q_OS_HPUX
00089 #define OS "HP-UX"ARCH
00090 #define OSID quint8(8)
00091 #elif defined Q_OS_HURD
00092 #define OS "GNU Hurd"ARCH
00093 #define OSID quint8(9)
00094 #elif defined Q_OS_IRIX
00095 #define OS "SGI Irix"ARCH
00096 #define OSID quint8(10)
00097 #elif defined Q_OS_LINUX
00098 #define OS "Linux"ARCH
00099 #define OSID quint8(11)
00100 #elif defined Q_OS_LYNX
00101 #define OS "LynxOS"ARCH
00102 #define OSID quint8(12)
00103 #elif defined Q_OS_MAC
00104 #define OS "Mac OS (Darwin)"ARCH
00105 #define OSID quint8(13)
00106 #elif defined Q_OS_MSDOS
00107 #define OS "MS-DOS"ARCH
00108 #define OSID quint8(14)
00109 #elif defined Q_OS_NETBSD
00110 #define OS "NetBSD"ARCH
00111 #define OSID quint8(15)
00112 #elif defined Q_OS_OS2
00113 #define OS "OS/2"ARCH
00114 #define OSID quint8(16)
00115 #elif defined Q_OS_OPENBSD
00116 #define OS "OpenBSD"ARCH
00117 #define OSID quint8(17)
00118 #elif defined Q_OS_OS2EMX
00119 #define OS "OS/2"ARCH
00120 #define OSID quint8(18)
00121 #elif defined Q_OS_OSF
00122 #define OS "HP Tru64 UNIX"ARCH
00123 #define OSID quint8(19)
00124 #elif defined Q_OS_QNX
00125 #define OS "QNX Neutrino"ARCH
00126 #define OSID quint8(20)
00127 #elif defined Q_OS_RELIANT
00128 #define OS "Reliant UNIX"ARCH
00129 #define OSID quint8(21)
00130 #elif defined Q_OS_SCO
00131 #define OS "SCO OpenServer 5"ARCH
00132 #define OSID quint8(22)
00133 #elif defined Q_OS_SOLARIS
00134 #define OS "Sun Solaris"ARCH
00135 #define OSID quint8(23)
00136 #elif defined Q_OS_SYMBIAN
00137 #define OS "Symbian"ARCH
00138 #define OSID quint8(24)
00139 #elif defined Q_OS_ULTRIX
00140 #define OS "DEC Ultrix"ARCH
00141 #define OSID quint8(25)
00142 #elif defined Q_OS_UNIX
00143 #define OS "UNIX BSD/SYSV"ARCH
00144 #define OSID quint8(26)
00145 #elif defined Q_OS_UNIXWARE
00146 #define OS "UnixWare 7/Open UNIX 8"ARCH
00147 #define OSID quint8(27)
00148 #elif defined Q_OS_WIN32
00149 #define OS "Windows"ARCH
00150 #define OSID quint8(28)
00151 #elif defined Q_OS_WINCE
00152 #define OS "Windows CE"ARCH
00153 #define OSID quint8(29)
00154 #else
00155 #define OS "Unknown"ARCH
00156 #define OSID quint8(255)
00157 #endif // OS
00158
00159 #endif // OS_H