diff --git a/sycl/include/sycl/sycl.hpp b/sycl/include/sycl/sycl.hpp index 21d0d9015de02..73c481129a5f1 100644 --- a/sycl/include/sycl/sycl.hpp +++ b/sycl/include/sycl/sycl.hpp @@ -91,3 +91,9 @@ #include #include #include + +#ifndef SYCL2020_CONFORMANT_APIS +// We used to include those and some code might be reliant on that. +#include +#include +#endif diff --git a/sycl/test/basic_tests/no_math_in_global_ns.cpp b/sycl/test/basic_tests/no_math_in_global_ns.cpp index e1e6b9ee74c0f..4650b1a269883 100644 --- a/sycl/test/basic_tests/no_math_in_global_ns.cpp +++ b/sycl/test/basic_tests/no_math_in_global_ns.cpp @@ -1,4 +1,4 @@ -// RUN: %clangxx -fsycl -fsyntax-only -Xclang -verify %s -Xclang -verify-ignore-unexpected=warning,note +// RUN: %clangxx -DSYCL2020_CONFORMANT_APIS=1 -fsycl -fsyntax-only -Xclang -verify %s -Xclang -verify-ignore-unexpected=warning,note // expected-no-diagnostics // MSVC has the following includes: