Skip to content

Commit cff6c68

Browse files
[NFC][SYCL] Remove __SYCL_INLINE_NAMESPACE macro (#7690)
Existing uses should have been __SYCL_INLINE_VER_NAMESPACE and after fixing them the macro becomes dead.
1 parent 62c0643 commit cff6c68

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

sycl/include/sycl/detail/defines_elementary.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
#pragma once
1010

11-
#define __SYCL_INLINE_NAMESPACE(X) inline namespace X
12-
1311
#define __SYCL_INLINE_VER_NAMESPACE(X) inline namespace X
1412

1513
#ifndef __has_attribute

sycl/include/sycl/detail/info_desc_helpers.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <sycl/info/info_desc.hpp>
1313

1414
namespace sycl {
15-
__SYCL_INLINE_NAMESPACE(_V1) {
15+
__SYCL_INLINE_VER_NAMESPACE(_V1) {
1616
namespace detail {
1717
template <typename T> struct PiInfoCode;
1818
template <typename T> struct is_platform_info_desc : std::false_type {};
@@ -117,5 +117,5 @@ struct IsSubGroupInfo<info::kernel_device_specific::compile_sub_group_size>
117117
#undef __SYCL_PARAM_TRAITS_SPEC
118118

119119
} // namespace detail
120-
} // __SYCL_INLINE_NAMESPACE(_V1)
120+
} // __SYCL_INLINE_VER_NAMESPACE(_V1)
121121
} // namespace sycl

sycl/include/sycl/ext/oneapi/experimental/uniform.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// 1 - Initial extension version. Base features are supported.
1616
#define SYCL_EXT_ONEAPI_UNIFORM 1
1717

18-
#include <sycl/detail/defines_elementary.hpp> // for __SYCL_INLINE_NAMESPACE
18+
#include <sycl/detail/defines_elementary.hpp> // for __SYCL_INLINE_VER_NAMESPACE
1919

2020
#include <type_traits>
2121

0 commit comments

Comments
 (0)