| 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #ifndef _LIBCPP___PSTL_BACKEND_H |
| 10 | #define _LIBCPP___PSTL_BACKEND_H |
| 11 | |
| 12 | #include <__config> |
| 13 | #include <__pstl/backend_fwd.h> |
| 14 | |
| 15 | #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) |
| 16 | # pragma GCC system_header |
| 17 | #endif |
| 18 | |
| 19 | _LIBCPP_PUSH_MACROS |
| 20 | #include <__undef_macros> |
| 21 | |
| 22 | #if _LIBCPP_STD_VER >= 17 |
| 23 | |
| 24 | # if defined(_LIBCPP_PSTL_BACKEND_SERIAL) |
| 25 | # include <__pstl/backends/default.h> |
| 26 | # include <__pstl/backends/serial.h> |
| 27 | # elif defined(_LIBCPP_PSTL_BACKEND_STD_THREAD) |
| 28 | # include <__pstl/backends/default.h> |
| 29 | # include <__pstl/backends/std_thread.h> |
| 30 | # elif defined(_LIBCPP_PSTL_BACKEND_LIBDISPATCH) |
| 31 | # include <__pstl/backends/default.h> |
| 32 | # include <__pstl/backends/libdispatch.h> |
| 33 | # endif |
| 34 | |
| 35 | #endif // _LIBCPP_STD_VER >= 17 |
| 36 | |
| 37 | _LIBCPP_POP_MACROS |
| 38 | |
| 39 | #endif // _LIBCPP___PSTL_BACKEND_H |
| 40 | |