Skip to content

Commit

Permalink
Change to a macro that defines the shim header name
Browse files Browse the repository at this point in the history
  • Loading branch information
akukanov committed Aug 5, 2024
1 parent 8b9a23c commit 4d78f12
Showing 1 changed file with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef _ONEDPL_DR_DETAIL_RANGES_SHIM_HPP
#define _ONEDPL_DR_DETAIL_RANGES_SHIM_HPP

#if 1 // ifndef DR_USE_RANGES_V3
#ifndef _ONEDPL_DR_STD_RANGES_SHIM_HEADER

# include <ranges>

Expand All @@ -26,12 +26,8 @@ namespace stdrng = ::std::ranges;

#else

# include <range/v3/all.hpp>
# include _ONEDPL_DR_STD_RANGES_SHIM_HEADER

namespace stdrng = ::ranges;
# define __ONEDPL_DR_STD_RANGES_NAMESPACE ranges
#endif /* DR_USE_RANGES_V3 */
#endif /* _ONEDPL_DR_STD_RANGES_SHIM_HEADER */

#endif /* _ONEDPL_DR_DETAIL_RANGES_SHIM_HPP */

0 comments on commit 4d78f12

Please sign in to comment.