Shadowrun: Awakened 29 September 2011 - Build 871
tbb_config.h
Go to the documentation of this file.
00001 /*
00002     Copyright 2005-2010 Intel Corporation.  All Rights Reserved.
00003 
00004     This file is part of Threading Building Blocks.
00005 
00006     Threading Building Blocks is free software; you can redistribute it
00007     and/or modify it under the terms of the GNU General Public License
00008     version 2 as published by the Free Software Foundation.
00009 
00010     Threading Building Blocks is distributed in the hope that it will be
00011     useful, but WITHOUT ANY WARRANTY; without even the implied warranty
00012     of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013     GNU General Public License for more details.
00014 
00015     You should have received a copy of the GNU General Public License
00016     along with Threading Building Blocks; if not, write to the Free Software
00017     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00018 
00019     As a special exception, you may use this file as part of a free software
00020     library without restriction.  Specifically, if other files instantiate
00021     templates or use macros or inline functions from this file, or you compile
00022     this file and link it with other files to produce an executable, this
00023     file does not by itself cause the resulting executable to be covered by
00024     the GNU General Public License.  This exception does not however
00025     invalidate any other reasons why the executable file might be covered by
00026     the GNU General Public License.
00027 */
00028 
00029 #ifndef __TBB_tbb_config_H
00030 #define __TBB_tbb_config_H
00031 
00041 #ifndef TBB_USE_DEBUG
00042 #ifdef TBB_DO_ASSERT
00043 #define TBB_USE_DEBUG TBB_DO_ASSERT
00044 #else
00045 #define TBB_USE_DEBUG 0
00046 #endif /* TBB_DO_ASSERT */
00047 #else
00048 #define TBB_DO_ASSERT TBB_USE_DEBUG
00049 #endif /* TBB_USE_DEBUG */
00050 
00051 #ifndef TBB_USE_ASSERT
00052 #ifdef TBB_DO_ASSERT
00053 #define TBB_USE_ASSERT TBB_DO_ASSERT
00054 #else 
00055 #define TBB_USE_ASSERT TBB_USE_DEBUG
00056 #endif /* TBB_DO_ASSERT */
00057 #endif /* TBB_USE_ASSERT */
00058 
00059 #ifndef TBB_USE_THREADING_TOOLS
00060 #ifdef TBB_DO_THREADING_TOOLS
00061 #define TBB_USE_THREADING_TOOLS TBB_DO_THREADING_TOOLS
00062 #else 
00063 #define TBB_USE_THREADING_TOOLS TBB_USE_DEBUG
00064 #endif /* TBB_DO_THREADING_TOOLS */
00065 #endif /* TBB_USE_THREADING_TOOLS */
00066 
00067 #ifndef TBB_USE_PERFORMANCE_WARNINGS
00068 #ifdef TBB_PERFORMANCE_WARNINGS
00069 #define TBB_USE_PERFORMANCE_WARNINGS TBB_PERFORMANCE_WARNINGS
00070 #else 
00071 #define TBB_USE_PERFORMANCE_WARNINGS TBB_USE_DEBUG
00072 #endif /* TBB_PEFORMANCE_WARNINGS */
00073 #endif /* TBB_USE_PERFORMANCE_WARNINGS */
00074 
00075 #if !defined(__EXCEPTIONS) && !defined(_CPPUNWIND) && !defined(__SUNPRO_CC) || defined(_XBOX)
00076     #if TBB_USE_EXCEPTIONS
00077         #error Compilation settings do not support exception handling. Please do not set TBB_USE_EXCEPTIONS macro or set it to 0.
00078     #elif !defined(TBB_USE_EXCEPTIONS)
00079         #define TBB_USE_EXCEPTIONS 0
00080     #endif
00081 #elif !defined(TBB_USE_EXCEPTIONS)
00082     #define TBB_USE_EXCEPTIONS 1
00083 #endif
00084 
00085 #ifndef TBB_IMPLEMENT_CPP0X
00086 
00087 #if __GNUC__==4 && __GNUC_MINOR__>=4 && __GXX_EXPERIMENTAL_CXX0X__
00088 #define TBB_IMPLEMENT_CPP0X 0
00089 #else
00090 #define TBB_IMPLEMENT_CPP0X 1
00091 #endif
00092 #endif /* TBB_IMPLEMENT_CPP0X */
00093 
00096 #ifndef __TBB_COUNT_TASK_NODES
00097     #define __TBB_COUNT_TASK_NODES TBB_USE_ASSERT
00098 #endif
00099 
00100 #ifndef __TBB_TASK_GROUP_CONTEXT
00101 #define __TBB_TASK_GROUP_CONTEXT 1
00102 #endif /* __TBB_TASK_GROUP_CONTEXT */
00103 
00104 #ifndef __TBB_SCHEDULER_OBSERVER
00105 #define __TBB_SCHEDULER_OBSERVER 1
00106 #endif /* __TBB_SCHEDULER_OBSERVER */
00107 
00108 #ifndef __TBB_ARENA_PER_MASTER
00109 #define __TBB_ARENA_PER_MASTER 1
00110 #endif /* __TBB_ARENA_PER_MASTER */
00111 
00112 /* TODO: The following condition should be extended as soon as new compilers/runtimes 
00113          with std::exception_ptr support appear. */
00114 #define __TBB_EXCEPTION_PTR_PRESENT  (_MSC_VER >= 1600 || __GXX_EXPERIMENTAL_CXX0X__ && (__GNUC__==4 && __GNUC_MINOR__>=4))
00115 
00116 
00117 #ifndef TBB_USE_CAPTURED_EXCEPTION
00118     #if __TBB_EXCEPTION_PTR_PRESENT
00119         #define TBB_USE_CAPTURED_EXCEPTION 0
00120     #else
00121         #define TBB_USE_CAPTURED_EXCEPTION 1
00122     #endif
00123 #else /* defined TBB_USE_CAPTURED_EXCEPTION */
00124     #if !TBB_USE_CAPTURED_EXCEPTION && !__TBB_EXCEPTION_PTR_PRESENT
00125         #error Current runtime does not support std::exception_ptr. Set TBB_USE_CAPTURED_EXCEPTION and make sure that your code is ready to catch tbb::captured_exception.
00126     #endif
00127 #endif /* defined TBB_USE_CAPTURED_EXCEPTION */
00128 
00129 
00130 #ifndef __TBB_DEFAULT_PARTITIONER
00131 #if TBB_DEPRECATED
00132 
00133 #define __TBB_DEFAULT_PARTITIONER tbb::simple_partitioner
00134 #else
00135 
00136 #define __TBB_DEFAULT_PARTITIONER tbb::auto_partitioner
00137 #endif /* TBB_DEFAULT_PARTITIONER */
00138 #endif /* !defined(__TBB_DEFAULT_PARTITIONER */
00139 
00142 #if __GNUC__==4 && __GNUC_MINOR__>=4 && !defined(__INTEL_COMPILER)
00143     #define __TBB_GCC_WARNING_SUPPRESSION_ENABLED 1
00144 #endif
00145 
00152 #if _MSC_VER && __INTEL_COMPILER && (__INTEL_COMPILER<1110 || __INTEL_COMPILER==1110 && __INTEL_COMPILER_BUILD_DATE < 20091012)
00153 
00156     #define __TBB_DEFAULT_DTOR_THROW_SPEC_BROKEN 1
00157 #endif
00158 
00159 #if defined(_MSC_VER) && _MSC_VER < 1500 && !defined(__INTEL_COMPILER)
00160 
00162     #define __TBB_TEMPLATE_FRIENDS_BROKEN 1
00163 #endif
00164 
00165 #if __GLIBC__==2 && __GLIBC_MINOR__==3 || __MINGW32__
00166 
00167 
00168     #define __TBB_THROW_ACROSS_MODULE_BOUNDARY_BROKEN 1
00169 #endif
00170 
00171 #if (_WIN32||_WIN64) && __INTEL_COMPILER == 1110
00172 
00173     #define __TBB_ICL_11_1_CODE_GEN_BROKEN 1
00174 #endif
00175 
00176 #if __GNUC__==3 && __GNUC_MINOR__==3 && !defined(__INTEL_COMPILER)
00177 
00178     #define __TBB_GCC_3_3_PROTECTED_BROKEN 1
00179 #endif
00180 
00181 #if __FreeBSD__
00182 
00184     #define __TBB_PRIO_INHERIT_BROKEN 1
00185 
00188     #define __TBB_PLACEMENT_NEW_EXCEPTION_SAFETY_BROKEN 1
00189 #endif /* __FreeBSD__ */
00190 
00191 #if (__linux__ || __APPLE__) && __i386__ && defined(__INTEL_COMPILER)
00192 
00194     #define __TBB_ICC_ASM_VOLATILE_BROKEN 1
00195 #endif
00196 
00197 
00198 #endif /* __TBB_tbb_config_H */

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net