/* * TSPSG - TSP Solver and Generator * Copyright (C) 2007-2009 Lёppa * * $Id: os.h 40 2009-07-20 23:13:29Z laleppa $ * $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/src/os.h $ * * This file is part of TSPSG. * * TSPSG is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * TSPSG is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with TSPSG. If not, see . */ #ifndef OS_H #define OS_H #if defined(__amd64__) || defined(_M_X64) || defined(__ia64__) || defined(_M_IA64) #define BITS " (64-bit)" #elif defined(__i386__) || defined(_M_IX86) || defined(_X86_) #define BITS " (32-bit)" #else #define BITS "" #endif // BITS #ifdef Q_OS_AIX #define OS "AIX"BITS #define OSID quint8(1) #elif defined Q_OS_BSD4 #define OS "BSD 4.4"BITS #define OSID quint8(2) #elif defined Q_OS_BSDI #define OS "BSD/OS"BITS #define OSID quint8(3) #elif defined Q_OS_CYGWIN #define OS "Cygwin"BITS #define OSID quint8(4) #elif defined Q_OS_DARWIN #define OS "Darwin OS"BITS #define OSID quint8(5) #elif defined Q_OS_DGUX #define OS "DG/UX"BITS #define OSID quint8(6) #elif defined Q_OS_DYNIX #define OS "DYNIX/ptx"BITS #define OSID quint8(7) #elif defined Q_OS_FREEBSD #define OS "FreeBSD"BITS #define OSID quint8(8) #elif defined Q_OS_HPUX #define OS "HP-UX"BITS #define OSID quint8(9) #elif defined Q_OS_HURD #define OS "GNU Hurd"BITS #define OSID quint8(10) #elif defined Q_OS_IRIX #define OS "SGI Irix"BITS #define OSID quint8(11) #elif defined Q_OS_LINUX #define OS "Linux"BITS #define OSID quint8(12) #elif defined Q_OS_LYNX #define OS "LynxOS"BITS #define OSID quint8(13) #elif defined Q_OS_MSDOS #define OS "MS-DOS"BITS #define OSID quint8(14) #elif defined Q_OS_NETBSD #define OS "NetBSD"BITS #define OSID quint8(15) #elif defined Q_OS_OS2 #define OS "OS/2"BITS #define OSID quint8(16) #elif defined Q_OS_OPENBSD #define OS "OpenBSD"BITS #define OSID quint8(17) #elif defined Q_OS_OS2EMX #define OS "OS/2"BITS #define OSID quint8(18) #elif defined Q_OS_OSF #define OS "HP Tru64 UNIX"BITS #define OSID quint8(19) #elif defined Q_OS_QNX6 #define OS "QNX RTP 6.1"BITS #define OSID quint8(20) #elif defined Q_OS_QNX #define OS "QNX"BITS #define OSID quint8(21) #elif defined Q_OS_RELIANT #define OS "Reliant UNIX"BITS #define OSID quint8(22) #elif defined Q_OS_SCO #define OS "SCO OpenServer 5"BITS #define OSID quint8(23) #elif defined Q_OS_SOLARIS #define OS "Sun Solaris"BITS #define OSID quint8(24) #elif defined Q_OS_ULTRIX #define OS "DEC Ultrix"BITS #define OSID quint8(25) #elif defined Q_OS_UNIX #define OS "UNIX BSD/SYSV"BITS #define OSID quint8(26) #elif defined Q_OS_UNIXWARE #define OS "UnixWare 7/Open UNIX 8"BITS #define OSID quint8(27) #elif defined Q_OS_WIN32 #define OS "Windows"BITS #define OSID quint8(28) #elif defined Q_OS_WINCE #define OS "Windows CE" #define OSID quint8(29) #else #define OS "Unknown"BITS #define OSID quint8(255) #endif // OS #endif // OS_H