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 #endif
00035
00036
00037 namespace std {
00038 using ::size_t; using ::ptrdiff_t;
00039 }
00040
00041 #define __TBB_STRING_AUX(x) #x
00042 #define __TBB_STRING(x) __TBB_STRING_AUX(x)
00043
00044
00045 #ifdef TBB_USE_DEBUG
00046 # if TBB_USE_DEBUG
00047 # if !defined(_DEBUG)
00048 # pragma message(__FILE__ "(" __TBB_STRING(__LINE__) ") : Warning: Recommend using /MDd if compiling with TBB_USE_DEBUG!=0")
00049 # endif
00050 # else
00051 # if defined(_DEBUG)
00052 # pragma message(__FILE__ "(" __TBB_STRING(__LINE__) ") : Warning: Recommend using /MD if compiling with TBB_USE_DEBUG==0")
00053 # endif
00054 # endif
00055 #else
00056 # ifdef _DEBUG
00057 # define TBB_USE_DEBUG 1
00058 # endif
00059 #endif
00060
00061 #if __TBB_BUILD && !defined(__TBB_NO_IMPLICIT_LINKAGE)
00062 #define __TBB_NO_IMPLICIT_LINKAGE 1
00063 #endif
00064
00065 #if _MSC_VER
00066 #if !__TBB_NO_IMPLICIT_LINKAGE
00067 #ifdef _DEBUG
00068 #pragma comment(lib, "tbb_debug.lib")
00069 #else
00070 #pragma comment(lib, "tbb.lib")
00071 #endif
00072 #endif
00073 #endif