diff --git a/sycl/include/sycl/stl_wrappers/cassert b/sycl/include/sycl/stl_wrappers/cassert index 64eb839582652..f91cf8b632984 100644 --- a/sycl/include/sycl/stl_wrappers/cassert +++ b/sycl/include/sycl/stl_wrappers/cassert @@ -16,7 +16,6 @@ #include <../include/cassert> #endif -extern "C++" { #ifdef __SYCL_DEVICE_ONLY__ #include @@ -43,4 +42,3 @@ __devicelib_assert_fail(const char *, const char *, int32_t, const char *, #endif #endif #endif -} diff --git a/sycl/test/basic_tests/assert_header_with_c_linkage.cpp b/sycl/test/basic_tests/assert_header_with_c_linkage.cpp index c5a81d9730134..a01da9a992165 100644 --- a/sycl/test/basic_tests/assert_header_with_c_linkage.cpp +++ b/sycl/test/basic_tests/assert_header_with_c_linkage.cpp @@ -1,18 +1,13 @@ -// RUN: %clangxx -fsycl -DASSERT -fsyntax-only %s -// RUN: %clangxx -fsycl -DCASSERT -fsyntax-only %s +// RUN: %clangxx -fsycl -fsyntax-only %s -// Verify that compilation works when assert.h/cassert is wrapped by a C linkage +// Verify that compilation works when assert.h is wrapped by a C linkage // specification. #ifdef __cplusplus extern "C" { #endif -#if defined(ASSERT) #include -#elif defined(CASSERT) -#include -#endif #ifdef __cplusplus }