Home ⌂
Doc Index ◂
Up ▴
Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
_tbb_windef.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2005-2020 Intel Corporation
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7
8
http://www.apache.org/licenses/LICENSE-2.0
9
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
*/
16
17
#ifndef __TBB_tbb_windef_H
18
#error Do not #include this internal file directly; use public TBB headers instead.
19
#endif
/* __TBB_tbb_windef_H */
20
21
// Check that the target Windows version has all API calls required for TBB.
22
// Do not increase the version in condition beyond 0x0500 without prior discussion!
23
#if defined(_WIN32_WINNT) && _WIN32_WINNT<0x0501
24
#error TBB is unable to run on old Windows versions; _WIN32_WINNT must be 0x0501 or greater.
25
#endif
26
27
#if !defined(_MT)
28
#error TBB requires linkage with multithreaded C/C++ runtime library. \
29
Choose multithreaded DLL runtime in project settings, or use /MD[d] compiler switch.
30
#endif
31
32
// Workaround for the problem with MVSC headers failing to define namespace std
33
namespace
std {
34
using ::size_t; using ::ptrdiff_t;
35
}
36
37
#define __TBB_STRING_AUX(x) #x
38
#define __TBB_STRING(x) __TBB_STRING_AUX(x)
39
40
// Default setting of TBB_USE_DEBUG
41
#ifdef TBB_USE_DEBUG
42
# if TBB_USE_DEBUG
43
# if !defined(_DEBUG)
44
# pragma message(__FILE__ "(" __TBB_STRING(__LINE__) ") : Warning: Recommend using /MDd if compiling with TBB_USE_DEBUG!=0")
45
# endif
46
# else
47
# if defined(_DEBUG)
48
# pragma message(__FILE__ "(" __TBB_STRING(__LINE__) ") : Warning: Recommend using /MD if compiling with TBB_USE_DEBUG==0")
49
# endif
50
# endif
51
#endif
52
53
#if (__TBB_BUILD || __TBBMALLOC_BUILD || __TBBBIND_BUILD) && !defined(__TBB_NO_IMPLICIT_LINKAGE)
54
#define __TBB_NO_IMPLICIT_LINKAGE 1
55
#endif
56
57
#if _MSC_VER
58
#if !__TBB_NO_IMPLICIT_LINKAGE
59
#ifdef __TBB_LIB_NAME
60
#pragma comment(lib, __TBB_STRING(__TBB_LIB_NAME))
61
#else
62
#ifdef _DEBUG
63
#pragma comment(lib, "tbb_debug.lib")
64
#else
65
#pragma comment(lib, "tbb.lib")
66
#endif
67
#endif
68
#endif
69
#endif
Copyright © 2005-2020 Intel Corporation. All Rights Reserved.
Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.
* Other names and brands may be claimed as the property of others.