Shadowrun: Awakened 29 September 2011 - Build 871
_tbb_windef.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_windef_H
00030 #error Do not #include this file directly.  Use "#include tbb/tbb_stddef.h" instead.
00031 #endif /* __TBB_tbb_windef_H */
00032 
00033 // Check that the target Windows version has all API calls requried for TBB.
00034 // Do not increase the version in condition beyond 0x0500 without prior discussion!
00035 #if defined(_WIN32_WINNT) && _WIN32_WINNT<0x0400
00036 #error TBB is unable to run on old Windows versions; _WIN32_WINNT must be 0x0400 or greater.
00037 #endif
00038 
00039 #if !defined(_MT)
00040 #error TBB requires linkage with multithreaded C/C++ runtime library. \
00041        Choose multithreaded DLL runtime in project settings, or use /MD[d] compiler switch.
00042 #endif
00043 
00044 // Workaround for the problem with MVSC headers failing to define namespace std
00045 namespace std {
00046   using ::size_t; using ::ptrdiff_t;
00047 }
00048 
00049 #define __TBB_STRING_AUX(x) #x
00050 #define __TBB_STRING(x) __TBB_STRING_AUX(x)
00051 
00052 // Default setting of TBB_USE_DEBUG
00053 #ifdef TBB_USE_DEBUG
00054 #    if TBB_USE_DEBUG 
00055 #        if !defined(_DEBUG)
00056 #            pragma message(__FILE__ "(" __TBB_STRING(__LINE__) ") : Warning: Recommend using /MDd if compiling with TBB_USE_DEBUG!=0")
00057 #        endif
00058 #    else
00059 #        if defined(_DEBUG)
00060 #            pragma message(__FILE__ "(" __TBB_STRING(__LINE__) ") : Warning: Recommend using /MD if compiling with TBB_USE_DEBUG==0")
00061 #        endif
00062 #    endif
00063 #else
00064 #    ifdef _DEBUG
00065 #        define TBB_USE_DEBUG 1
00066 #    endif
00067 #endif 
00068 
00069 #if __TBB_BUILD && !defined(__TBB_NO_IMPLICIT_LINKAGE)
00070 #define __TBB_NO_IMPLICIT_LINKAGE 1
00071 #endif
00072 
00073 #if _MSC_VER
00074     #if !__TBB_NO_IMPLICIT_LINKAGE
00075         #ifdef _DEBUG
00076             #pragma comment(lib, "tbb_debug.lib")
00077         #else
00078             #pragma comment(lib, "tbb.lib")
00079         #endif
00080     #endif
00081 #endif

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