Skip to content

Commit f6054ce

Browse files
committed
fix
1 parent 448bbaa commit f6054ce

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sycl/include/sycl/khr/group_interface.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#define SYCL_KHR_GROUP_INTERFACE 1
1515

16-
#if __has_include(<mdspan>)
16+
#if __cplusplus >= 202302 && __has_include(<mdspan>)
1717
#include <mdspan>
1818
#endif
1919

sycl/include/syclcompat/kernel.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@
3838
#include <dlfcn.h>
3939
#endif
4040

41-
#if __has_include(<filesystem>)
41+
#if defined(__has_include) && __has_include(<filesystem>)
4242
#include <filesystem>
43-
#elif __has_include(<experimental/filesystem>)
43+
#elif defined(__has_include) && __has_include(<experimental/filesystem>)
4444
#include <experimental/filesystem>
4545
#else
4646
#error "SYCLomatic runtime requires C++ filesystem support"
@@ -83,7 +83,7 @@ get_kernel_function_info(const void *function) {
8383

8484
namespace detail {
8585

86-
#if __has_include(<filesystem>)
86+
#if defined(__has_include) && __has_include(<filesystem>)
8787
namespace fs = std::filesystem;
8888
#else
8989
namespace fs = std::experimental::filesystem;

0 commit comments

Comments
 (0)