Unverified Commit 17d972ac authored by Nicolas Hug's avatar Nicolas Hug Committed by GitHub
Browse files

Remove VISION_INLINE_VARIABLE (#8416)

parent c09cc696
......@@ -9,13 +9,3 @@
#else
#define VISION_API
#endif
#if (defined __cpp_inline_variables) || __cplusplus >= 201703L
#define VISION_INLINE_VARIABLE inline
#else
#ifdef _MSC_VER
#define VISION_INLINE_VARIABLE __declspec(selectany)
#else
#define VISION_INLINE_VARIABLE __attribute__((weak))
#endif
#endif
......@@ -7,6 +7,6 @@ namespace vision {
VISION_API int64_t cuda_version();
namespace detail {
extern "C" VISION_INLINE_VARIABLE auto _register_ops = &cuda_version;
extern "C" inline auto _register_ops = &cuda_version;
} // namespace detail
} // namespace vision
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment