Tulip  4.6.0
Better Visualization Through Research
library/tulip-core/include/tulip/SystemDefinition.h
00001 /*
00002  *
00003  * This file is part of Tulip (www.tulip-software.org)
00004  *
00005  * Authors: David Auber and the Tulip development Team
00006  * from LaBRI, University of Bordeaux
00007  *
00008  * Tulip is free software; you can redistribute it and/or modify
00009  * it under the terms of the GNU Lesser General Public License
00010  * as published by the Free Software Foundation, either version 3
00011  * of the License, or (at your option) any later version.
00012  *
00013  * Tulip is distributed in the hope that it will be useful,
00014  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00016  * See the GNU General Public License for more details.
00017  *
00018  */
00019 ///@cond DOXYGEN_HIDDEN
00020 
00021 #ifndef SYSTEMDEFINITION_H
00022 #define SYSTEMDEFINITION_H
00023 
00024 #if defined(_WIN32)
00025 #define OS_PLATFORM "win"
00026 #elif defined(__APPLE__)
00027 #define OS_PLATFORM "mac"
00028 #elif defined(__linux__)
00029 #define OS_PLATFORM "linux"
00030 #else
00031 #define OS_PLATFORM "other"
00032 #endif
00033 
00034 #if defined(__x86_64__) || defined(_M_X64)
00035 #define OS_ARCHITECTURE "x86_64"
00036 #elif defined(__i386__) || defined(_M_IX86)
00037 #define OS_ARCHITECTURE "x86"
00038 #else
00039 #define OS_ARCHITECTURE "other"
00040 #endif
00041 
00042 #if defined(__clang__)
00043 #define OS_COMPILER "Clang"
00044 #elif defined(__GNUC__)
00045 #define OS_COMPILER "gcc"
00046 #elif defined(_MSC_VER)
00047 #define OS_COMPILER "MSVC"
00048 #endif
00049 
00050 #endif // SYSTEMDEFINITION_H
00051 ///@endcond
 All Classes Files Functions Variables Enumerations Enumerator Properties