1/*
2 Copyright (c) 2005-2021 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_detail__export_H
18#define __TBB_detail__export_H
19
20#if defined(__MINGW32__)
21 #define _EXPORT __declspec(dllexport)
22#elif defined(_WIN32) || defined(__unix__) || defined(__APPLE__) // Use .def files for these
23 #define _EXPORT
24#else
25 #error "Unknown platform/compiler"
26#endif
27
28#if __TBB_BUILD
29 #define TBB_EXPORT _EXPORT
30#else
31 #define TBB_EXPORT
32#endif
33
34#if __TBBMALLOC_BUILD
35 #define TBBMALLOC_EXPORT _EXPORT
36#else
37 #define TBBMALLOC_EXPORT
38#endif
39
40#if __TBBBIND_BUILD
41 #define TBBBIND_EXPORT _EXPORT
42#else
43 #define TBBBIND_EXPORT
44#endif
45
46#endif
47

source code of include/oneapi/tbb/detail/_export.h