[31] | 1 | /* |
---|
| 2 | * TSPSG - TSP Solver and Generator |
---|
| 3 | * Copyright (C) 2007-2009 Lёppa <contacts[at]oleksii[dot]name> |
---|
| 4 | * |
---|
| 5 | * $Id: os.h 40 2009-07-20 23:13:29Z laleppa $ |
---|
| 6 | * $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/src/os.h $ |
---|
| 7 | * |
---|
| 8 | * This file is part of TSPSG. |
---|
| 9 | * |
---|
| 10 | * TSPSG is free software: you can redistribute it and/or modify |
---|
| 11 | * it under the terms of the GNU General Public License as published by |
---|
| 12 | * the Free Software Foundation, either version 3 of the License, or |
---|
| 13 | * (at your option) any later version. |
---|
| 14 | * |
---|
| 15 | * TSPSG is distributed in the hope that it will be useful, |
---|
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 18 | * GNU General Public License for more details. |
---|
| 19 | * |
---|
| 20 | * You should have received a copy of the GNU General Public License |
---|
| 21 | * along with TSPSG. If not, see <http://www.gnu.org/licenses/>. |
---|
| 22 | */ |
---|
| 23 | |
---|
| 24 | #ifndef OS_H |
---|
| 25 | #define OS_H |
---|
| 26 | |
---|
[40] | 27 | #if defined(__amd64__) || defined(_M_X64) || defined(__ia64__) || defined(_M_IA64) |
---|
[37] | 28 | #define BITS " (64-bit)" |
---|
[40] | 29 | #elif defined(__i386__) || defined(_M_IX86) || defined(_X86_) |
---|
[37] | 30 | #define BITS " (32-bit)" |
---|
| 31 | #else |
---|
| 32 | #define BITS "" |
---|
| 33 | #endif // BITS |
---|
| 34 | |
---|
[31] | 35 | #ifdef Q_OS_AIX |
---|
[37] | 36 | #define OS "AIX"BITS |
---|
[31] | 37 | #define OSID quint8(1) |
---|
| 38 | #elif defined Q_OS_BSD4 |
---|
[37] | 39 | #define OS "BSD 4.4"BITS |
---|
[31] | 40 | #define OSID quint8(2) |
---|
| 41 | #elif defined Q_OS_BSDI |
---|
[37] | 42 | #define OS "BSD/OS"BITS |
---|
[31] | 43 | #define OSID quint8(3) |
---|
| 44 | #elif defined Q_OS_CYGWIN |
---|
[37] | 45 | #define OS "Cygwin"BITS |
---|
[31] | 46 | #define OSID quint8(4) |
---|
| 47 | #elif defined Q_OS_DARWIN |
---|
[37] | 48 | #define OS "Darwin OS"BITS |
---|
[31] | 49 | #define OSID quint8(5) |
---|
| 50 | #elif defined Q_OS_DGUX |
---|
[37] | 51 | #define OS "DG/UX"BITS |
---|
[31] | 52 | #define OSID quint8(6) |
---|
| 53 | #elif defined Q_OS_DYNIX |
---|
[37] | 54 | #define OS "DYNIX/ptx"BITS |
---|
[31] | 55 | #define OSID quint8(7) |
---|
| 56 | #elif defined Q_OS_FREEBSD |
---|
[37] | 57 | #define OS "FreeBSD"BITS |
---|
[31] | 58 | #define OSID quint8(8) |
---|
| 59 | #elif defined Q_OS_HPUX |
---|
[37] | 60 | #define OS "HP-UX"BITS |
---|
[31] | 61 | #define OSID quint8(9) |
---|
| 62 | #elif defined Q_OS_HURD |
---|
[37] | 63 | #define OS "GNU Hurd"BITS |
---|
[31] | 64 | #define OSID quint8(10) |
---|
| 65 | #elif defined Q_OS_IRIX |
---|
[37] | 66 | #define OS "SGI Irix"BITS |
---|
[31] | 67 | #define OSID quint8(11) |
---|
| 68 | #elif defined Q_OS_LINUX |
---|
[37] | 69 | #define OS "Linux"BITS |
---|
[31] | 70 | #define OSID quint8(12) |
---|
| 71 | #elif defined Q_OS_LYNX |
---|
[37] | 72 | #define OS "LynxOS"BITS |
---|
[31] | 73 | #define OSID quint8(13) |
---|
| 74 | #elif defined Q_OS_MSDOS |
---|
[37] | 75 | #define OS "MS-DOS"BITS |
---|
[31] | 76 | #define OSID quint8(14) |
---|
| 77 | #elif defined Q_OS_NETBSD |
---|
[37] | 78 | #define OS "NetBSD"BITS |
---|
[31] | 79 | #define OSID quint8(15) |
---|
| 80 | #elif defined Q_OS_OS2 |
---|
[37] | 81 | #define OS "OS/2"BITS |
---|
[31] | 82 | #define OSID quint8(16) |
---|
| 83 | #elif defined Q_OS_OPENBSD |
---|
[37] | 84 | #define OS "OpenBSD"BITS |
---|
[31] | 85 | #define OSID quint8(17) |
---|
| 86 | #elif defined Q_OS_OS2EMX |
---|
[37] | 87 | #define OS "OS/2"BITS |
---|
[31] | 88 | #define OSID quint8(18) |
---|
| 89 | #elif defined Q_OS_OSF |
---|
[37] | 90 | #define OS "HP Tru64 UNIX"BITS |
---|
[31] | 91 | #define OSID quint8(19) |
---|
| 92 | #elif defined Q_OS_QNX6 |
---|
[37] | 93 | #define OS "QNX RTP 6.1"BITS |
---|
[31] | 94 | #define OSID quint8(20) |
---|
| 95 | #elif defined Q_OS_QNX |
---|
[37] | 96 | #define OS "QNX"BITS |
---|
[31] | 97 | #define OSID quint8(21) |
---|
| 98 | #elif defined Q_OS_RELIANT |
---|
[37] | 99 | #define OS "Reliant UNIX"BITS |
---|
[31] | 100 | #define OSID quint8(22) |
---|
| 101 | #elif defined Q_OS_SCO |
---|
[37] | 102 | #define OS "SCO OpenServer 5"BITS |
---|
[31] | 103 | #define OSID quint8(23) |
---|
| 104 | #elif defined Q_OS_SOLARIS |
---|
[37] | 105 | #define OS "Sun Solaris"BITS |
---|
[31] | 106 | #define OSID quint8(24) |
---|
| 107 | #elif defined Q_OS_ULTRIX |
---|
[37] | 108 | #define OS "DEC Ultrix"BITS |
---|
[31] | 109 | #define OSID quint8(25) |
---|
| 110 | #elif defined Q_OS_UNIX |
---|
[37] | 111 | #define OS "UNIX BSD/SYSV"BITS |
---|
[31] | 112 | #define OSID quint8(26) |
---|
| 113 | #elif defined Q_OS_UNIXWARE |
---|
[37] | 114 | #define OS "UnixWare 7/Open UNIX 8"BITS |
---|
[31] | 115 | #define OSID quint8(27) |
---|
| 116 | #elif defined Q_OS_WIN32 |
---|
[37] | 117 | #define OS "Windows"BITS |
---|
[31] | 118 | #define OSID quint8(28) |
---|
| 119 | #elif defined Q_OS_WINCE |
---|
| 120 | #define OS "Windows CE" |
---|
| 121 | #define OSID quint8(29) |
---|
| 122 | #else |
---|
[37] | 123 | #define OS "Unknown"BITS |
---|
[31] | 124 | #define OSID quint8(255) |
---|
[37] | 125 | #endif // OS |
---|
[31] | 126 | |
---|
| 127 | #endif // OS_H |
---|