diff --git a/sycl/include/sycl/stl_wrappers/corecrt.h b/sycl/include/sycl/stl_wrappers/corecrt.h index f4d1ceccba4b7..c649f7ae02926 100644 --- a/sycl/include/sycl/stl_wrappers/corecrt.h +++ b/sycl/include/sycl/stl_wrappers/corecrt.h @@ -27,12 +27,12 @@ #if defined(__SYCL_DEVICE_ONLY__) && defined(_DEBUG) -#include // For uintptr_t -#include // For __DPCPP_SYCL_EXTERNAL +#include // For uintptr_t -extern "C" __DPCPP_SYCL_EXTERNAL void __cdecl _invalid_parameter( - wchar_t const *, wchar_t const *, wchar_t const *, unsigned int, - uintptr_t) { +extern "C" inline void __cdecl _invalid_parameter(wchar_t const *, + wchar_t const *, + wchar_t const *, unsigned int, + uintptr_t) { // Do nothing when called in device code }