Commit 3c1237f
authored
[SYCL] Simplify check whether a header file is available for inclusion (#19759)
`__has_include` is part of the C++ standard since C++17:
https://en.cppreference.com/w/cpp/preprocessor/include
We require C++17 if `sycl.hpp` is included, so we can use
`__has_include` without extra checks for its presence.1 parent 93ab143 commit 3c1237f
File tree
2 files changed
+3
-5
lines changed- sycl
- include/sycl/khr
- source/detail
2 files changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
18 | 17 | | |
19 | 18 | | |
20 | | - | |
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments