Loading...
Searching...
No Matches
tbb_version.h
1//
2// Copyright 2026 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_BASE_WORK_TBB_VERSION_H
8#define PXR_BASE_WORK_TBB_VERSION_H
9
10// The TBB version macro is located in different headers in legacy TBB
11// (tbb/tbb_stddef.h) and oneTBB (tbb/version.h)
12#if __has_include(<tbb/tbb_stddef.h>)
13#include <tbb/tbb_stddef.h>
14#elif __has_include(<tbb/version.h>)
15#include <tbb/version.h>
16#endif
17
18#ifndef TBB_INTERFACE_VERSION_MAJOR
19#error "TBB version macro TBB_INTERFACE_VERSION_MAJOR not found"
20#endif
21
22#endif //PXR_BASE_WORK_TBB_VERSION_H