00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __TBB_tbb_windef_H
00022 #error Do not #include this file directly. Use "#include tbb/tbb_stddef.h" instead.
00023 #endif
00024
00025
00026
00027 #if defined(_WIN32_WINNT) && _WIN32_WINNT<0x0400
00028 #error TBB is unable to run on old Windows versions; _WIN32_WINNT must be 0x0400 or greater.
00029 #endif
00030
00031 #if !defined(_MT)
00032 #error TBB requires linkage with multithreaded C/C++ runtime library. \
00033 Choose multithreaded DLL runtime in project settings, or use /MD[d] compiler switch.
00034 #elif !defined(_DLL)
00035 #pragma message("Warning: Using TBB together with static C/C++ runtime library is not recommended. " \
00036 "Consider switching your project to multithreaded DLL runtime used by TBB.")
00037 #endif
00038
00039
00040 namespace std {
00041 using ::size_t; using ::ptrdiff_t;
00042 }
00043
00044 #define __TBB_STRING_AUX(x) #x
00045 #define __TBB_STRING(x) __TBB_STRING_AUX(x)
00046
00047
00048 #ifdef TBB_USE_DEBUG
00049 # if TBB_USE_DEBUG
00050 # if !defined(_DEBUG)
00051 # pragma message(__FILE__ "(" __TBB_STRING(__LINE__) ") : Warning: Recommend using /MDd if compiling with TBB_USE_DEBUG!=0")
00052 # endif
00053 # else
00054 # if defined(_DEBUG)
00055 # pragma message(__FILE__ "(" __TBB_STRING(__LINE__) ") : Warning: Recommend using /MD if compiling with TBB_USE_DEBUG==0")
00056 # endif
00057 # endif
00058 #else
00059 # ifdef _DEBUG
00060 # define TBB_USE_DEBUG 1
00061 # endif
00062 #endif
00063
00064 #if __TBB_BUILD && !defined(__TBB_NO_IMPLICIT_LINKAGE)
00065 #define __TBB_NO_IMPLICIT_LINKAGE 1
00066 #endif
00067
00068 #if _MSC_VER
00069 #if !__TBB_NO_IMPLICIT_LINKAGE
00070 #ifdef _DEBUG
00071 #pragma comment(lib, "tbb_debug.lib")
00072 #else
00073 #pragma comment(lib, "tbb.lib")
00074 #endif
00075 #endif
00076 #endif